:root {
  color-scheme: dark;
  --bg: #080d18;
  --bg-deep: #050913;
  --surface: rgba(18, 27, 46, 0.88);
  --surface-solid: #111a2d;
  --surface-raised: #172239;
  --surface-hover: #1c2943;
  --border: rgba(153, 172, 212, 0.16);
  --border-strong: rgba(153, 172, 212, 0.28);
  --text: #f5f7ff;
  --text-soft: #c1c9da;
  --muted: #8491aa;
  --primary: #8067ff;
  --primary-bright: #9b87ff;
  --primary-soft: rgba(128, 103, 255, 0.16);
  --green: #42d6a4;
  --green-soft: rgba(66, 214, 164, 0.14);
  --amber: #f4bd56;
  --amber-soft: rgba(244, 189, 86, 0.14);
  --red: #ff6f7d;
  --red-soft: rgba(255, 111, 125, 0.14);
  --blue: #62a9ff;
  --blue-soft: rgba(98, 169, 255, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 26px;
  --radius-lg: 19px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --max-width: 1220px;
  --topbar-height: 74px;
}

/* Compact movie add card */
.movie-selection-card {
  width: min(100%, 820px);
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  padding: 14px;
  border-color: rgba(139, 111, 255, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 28, 48, .98), rgba(9, 17, 31, .98));
}

.movie-selection-card .selection-poster {
  width: 50px;
  height: 74px;
}

.movie-add-progress {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 15px;
  background: rgba(4, 10, 22, .38);
}

.movie-add-progress .movie-progress-option,
.movie-add-progress .planned-toggle {
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 5px 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
}

.movie-add-progress .movie-progress-option {
  display: flex;
  width: auto;
  grid-template-columns: none;
  gap: 6px;
}

.movie-add-progress .planned-toggle {
  min-width: 106px;
}

.movie-add-progress .progress-option-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.movie-minute-control {
  position: relative;
  display: flex;
  width: 62px;
  height: 32px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 9px;
  background: rgba(2, 8, 20, .72);
}

.movie-minute-control input {
  width: 100%;
  height: 100%;
  padding: 0 25px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  text-align: right;
  font: inherit;
  font-size: 11px;
}

.movie-minute-control small {
  position: absolute;
  right: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  pointer-events: none;
}

.movie-add-submit {
  min-width: 84px;
  min-height: 42px;
  padding-inline: 13px;
  border-radius: 11px;
  white-space: nowrap;
}

.movie-selection-card > .form-error {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .movie-selection-card { grid-template-columns: 1fr; }
  .movie-add-progress { justify-self: stretch; }
  .movie-add-submit { flex: 1; }
}

* {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea,
option,
label,
small,
strong,
em,
span {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% -10%, rgba(91, 76, 214, 0.12), transparent 34rem),
    radial-gradient(circle at 94% 18%, rgba(36, 130, 171, 0.08), transparent 28rem),
    linear-gradient(180deg, #090f1c 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[data-horizontal-scroll] {
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(128, 103, 255, 0.35);
  outline-offset: 2px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one {
  top: 6rem;
  left: -16rem;
  background: #765bff;
}

.ambient-two {
  right: -17rem;
  bottom: 4rem;
  background: #2578a9;
}

.loading-bar {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.loading-bar span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #b58cff, var(--blue));
  box-shadow: 0 0 18px var(--primary);
  transform: translateX(-120%);
}

body.is-loading .loading-bar {
  opacity: 1;
}

body.is-loading .loading-bar span {
  animation: loading-slide 1.05s ease-in-out infinite;
}

body.is-navigating #app {
  cursor: default;
}

.route-snapshot {
  position: fixed;
  z-index: 69;
  inset: var(--topbar-height) 0 0;
  overflow: hidden;
  background: var(--background, #070d18);
  pointer-events: none;
  opacity: 1;
  transition: opacity 140ms ease;
}

.route-snapshot.is-leaving { opacity: 0; }

/* Keep the current screen stable while the next route is prepared. Cached
   primary tabs replace it in one paint, without a blank or hidden frame. */
body.is-navigating #app { visibility: visible; }

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: route-painted-in 110ms ease-out both;
}

@keyframes route-painted-in {
  from { opacity: .985; }
  to { opacity: 1; }
}

@keyframes loading-slide {
  50% { width: 54%; }
  100% { transform: translateX(310%); }
}

.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 24, 0.78);
  backdrop-filter: blur(22px) saturate(130%);
}

.desktop-app .topbar {
  -webkit-app-region: drag;
}

.desktop-app .topbar button,
.desktop-app .topbar a,
.desktop-app .topbar input {
  -webkit-app-region: no-drag;
}

.window-controls {
  display: none;
  align-self: stretch;
  margin-right: -18px;
}

.desktop-app .window-controls {
  display: flex;
  margin-left: auto;
}

.window-controls button {
  display: grid;
  width: 46px;
  height: 100%;
  min-height: 52px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.window-controls button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.window-controls .window-close:hover {
  background: #c42b3a;
  color: #fff;
}

.window-controls svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.undo-button[hidden] {
  display: none;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 48px);
  max-width: none;
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #9178ff, #6550db);
  box-shadow: 0 8px 24px rgba(88, 65, 207, 0.35);
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  text-align: left;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  margin-left: 0;
}

.main-nav button {
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: 160ms ease;
}

.main-nav button:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.main-nav button.active {
  background: var(--primary-soft);
  color: #c9c0ff;
}

.library-alerts-button {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  margin-left: 22px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.library-alerts-button[hidden] {
  display: none;
}

.library-alerts-button:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.library-alerts-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-alerts-button.has-alerts {
  color: #b9a5ff;
  background: rgba(124, 92, 255, .11);
  border-color: rgba(142, 113, 255, .3);
}

.topbar-add-title {
  height: 38px;
  margin-left: 14px;
  padding: 0 13px 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(142, 113, 255, .3);
  border-radius: 12px;
  background: rgba(124, 92, 255, .11);
  color: #c9c0ff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.topbar-add-title:hover {
  border-color: rgba(154, 129, 255, .55);
  background: rgba(124, 92, 255, .19);
  color: #fff;
}

.topbar-add-title svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#libraryAlertsCount {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--page-bg, #070d19);
  border-radius: 999px;
  background: #7d5cff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.library-alert-groups { display: grid; gap: 24px; }
.library-alert-group { display: grid; gap: 10px; }
.library-alert-group h3 { margin: 0; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.library-alert-list { display: grid; gap: 8px; }
.library-alert-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--text-primary);
  text-align: left;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border-color);
  border-radius: 13px;
  cursor: pointer;
}
.library-alert-list button:hover { background: rgba(124,92,255,.08); border-color: rgba(142,113,255,.42); }
.library-alert-list button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.library-alert-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-alert-list small { color: var(--text-muted); }
.library-alert-list button > svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.library-alert-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #a88cff; background: rgba(124,92,255,.13); border-radius: 11px; }
.library-alert-icon.is-ready { color: #43dfb3; background: rgba(25,195,144,.13); }
.library-alert-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.empty-library-alerts { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-muted); text-align: center; }
.empty-library-alerts > svg { width: 30px; fill: none; stroke: #a88cff; stroke-width: 1.7; }
.empty-library-alerts strong { color: var(--text-primary); font-size: 17px; }
.empty-library-alerts p { max-width: 390px; margin: 0; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 24px;
}

.mobile-page-label {
  display: none;
}

.add-menu {
  position: relative;
}

.button-chevron {
  width: 14px !important;
  height: 14px !important;
  margin-left: 1px;
  transition: transform 160ms ease;
}

#addMenuButton[aria-expanded="true"] .button-chevron {
  transform: rotate(180deg);
}

.add-popover {
  position: absolute;
  z-index: 110;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 286px;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(17, 26, 45, 0.98);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  animation: popover-in 150ms ease both;
}

.add-popover[hidden] {
  display: none;
}

@keyframes popover-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
}

.add-popover > button {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.add-popover > button:hover,
.add-popover > button:focus-visible {
  background: var(--surface-hover);
}

.add-popover-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.add-popover-icon.movie {
  background: var(--blue-soft);
  color: var(--blue);
}

.add-popover-icon svg {
  width: 18px;
  height: 18px;
}

.add-popover strong,
.add-popover small {
  display: block;
}

.add-popover strong {
  font-size: 13px;
}

.add-popover small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: white;
  transform: translateY(-1px);
}

.search-shortcut {
  position: relative;
  width: 62px;
  justify-content: flex-start;
  padding-left: 11px;
}

.shortcut-key {
  position: absolute;
  right: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.app-main {
  width: calc(100% - 48px);
  max-width: none;
  min-height: calc(100vh - var(--topbar-height));
  margin: 0 auto;
  padding: 42px 0 100px;
}

.app-main:focus,
.app-main:focus-visible {
  outline: none;
}

.page {
  animation: page-in 220ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #a99aff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(35px, 5vw, 58px);
  line-height: 1.03;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

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

.soft {
  color: var(--text-soft);
}

.hero {
  padding: 30px 0 18px;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.hero-subtitle {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.dashboard-header {
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 0, rgba(128,103,255,.1), transparent 18rem),
    rgba(12,19,33,.66);
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-heading h1 {
  margin: 2px 0;
  font-size: clamp(22px, 3vw, 30px);
}

.dashboard-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-quick-actions,
.dashboard-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-stats {
  gap: 0;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.dashboard-stats span {
  padding: 0 12px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.dashboard-stats span:first-child {
  padding-left: 0;
  border-left: 0;
}

.dashboard-stats strong {
  margin-right: 3px;
  color: var(--text);
  font-size: 13px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 35px;
  text-align: left;
}

.action-grid-simplified {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-grid-simplified .action-card:last-child {
  grid-column: auto;
}

.add-title-page {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  margin-top: -24px;
}

.home-page {
  margin-top: -24px;
}

.add-title-page::before,
.add-title-page::after {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: '';
  filter: blur(100px);
  pointer-events: none;
}

.add-title-page::before {
  top: 30px;
  left: 18%;
  background: rgba(122, 92, 255, .09);
}

.add-title-page::after {
  top: 190px;
  right: 16%;
  background: rgba(47, 210, 171, .055);
}

.add-title-intro {
  max-width: 760px;
  margin: clamp(16px, 3vh, 34px) auto 18px;
  text-align: center;
}

.add-title-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(139, 111, 255, .42);
  border-radius: 14px;
  color: #b9a9ff;
  background: linear-gradient(145deg, rgba(139, 111, 255, .2), rgba(82, 218, 183, .08));
  box-shadow: 0 16px 45px rgba(36, 25, 95, .28), inset 0 1px rgba(255,255,255,.08);
}

.add-title-mark svg { width: 19px; height: 19px; }
.add-title-intro .eyebrow { justify-content: center; margin-bottom: 6px; }
.add-title-intro h1 { margin: 0; font-size: clamp(31px, 3vw, 46px); letter-spacing: -.04em; }
.add-title-intro > p:last-child { max-width: 610px; margin: 7px auto 0; color: var(--muted); font-size: 13px; }

.unified-add-panel {
  position: relative;
  max-width: 1120px;
  min-height: 118px;
  margin: 0 auto;
  padding: 13px;
  border-color: rgba(148, 163, 184, .14);
  border-radius: 21px;
  background: rgba(15, 25, 43, .72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .2), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}

.unified-search {
  position: relative;
  border-radius: 19px;
  background: linear-gradient(115deg, rgba(139, 111, 255, .52), rgba(148, 163, 184, .17) 42%, rgba(57, 211, 174, .3));
  padding: 1px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.unified-search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(81, 60, 190, .16);
}

.unified-search > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 22px;
  width: 19px;
  height: 19px;
  color: #b9aaff;
  transform: translateY(-50%);
}

.unified-search .input {
  min-height: 56px;
  width: 100%;
  padding: 0 24px 0 56px;
  border: 0;
  border-radius: 18px;
  outline: 0;
  font-size: 16px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(7, 15, 29, .97), rgba(10, 19, 34, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.unified-search .input:focus {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.unified-search-status {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding-left: 8px;
  font-size: 11px;
}

.unified-add-empty {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(148, 163, 184, .62);
}

.unified-add-empty svg { width: 14px; height: 14px; color: rgba(170, 157, 255, .72); }
.unified-add-empty span { font-size: 11px; }
.unified-add-empty i { width: 3px; height: 3px; margin: 0 5px; border-radius: 50%; background: rgba(148,163,184,.35); }

.unified-results:not(:empty) + .unified-add-empty,
#unifiedSelection:not(:empty) ~ .unified-add-empty { display: none; }

.unified-results {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.unified-results:empty {
  margin-top: 0;
}

.home-add {
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(420px, 1.45fr);
  column-gap: 26px;
  align-items: center;
  margin: 8px 0 34px;
  padding: 18px;
  border: 1px solid rgba(139, 111, 255, .2);
  border-radius: 22px;
  background: linear-gradient(115deg, rgba(24, 32, 57, .82), rgba(15, 25, 43, .68));
  box-shadow: 0 18px 55px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.025);
}

.home-add-copy {
  display: flex;
  gap: 13px;
  align-items: center;
}

.home-add-copy > span:last-child { display: grid; gap: 3px; }
.home-add-copy small { color: #9d8cff; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.home-add-copy strong { font-size: 17px; }

.home-add-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #b7a8ff;
  background: rgba(123, 97, 255, .15);
  box-shadow: inset 0 0 0 1px rgba(139,111,255,.18);
}

.home-add-icon svg { width: 18px; height: 18px; }
.home-add-search-wrap { min-width: 0; }
.home-unified-search .input { min-height: 54px; font-size: 14px; }
.home-search-status { min-height: 18px; padding: 5px 8px 0; }
.home-add > #unifiedSelection,
.home-unified-results { grid-column: 1 / -1; }
.home-unified-results:not(:empty) { margin-top: 14px; }
.home-add > #unifiedSelection:not(:empty) { margin-top: 16px; }

@media (max-width: 760px) {
  .home-add { grid-template-columns: 1fr; gap: 14px; }
}

.unified-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 140ms ease;
}

.unified-result:hover,
.unified-result.selected {
  border-color: rgba(128, 103, 255, 0.55);
  background: var(--primary-soft);
}

.unified-result > img,
.result-poster-placeholder {
  display: grid;
  width: 54px;
  height: 78px;
  place-items: center;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--primary-bright);
}

.result-poster-placeholder svg {
  width: 23px;
  height: 23px;
}

.unified-result small,
.unified-result strong,
.unified-result p {
  display: block;
}

.unified-result small {
  color: var(--primary-bright);
  font-size: 9px;
  font-weight: 760;
}

.unified-result strong {
  margin-top: 3px;
  font-size: 14px;
}

.unified-result p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.unified-result > i svg {
  width: 18px;
  height: 18px;
}

.unified-selection-card {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(340px, .95fr) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid rgba(139, 111, 255, .23);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 31, 52, .97), rgba(12, 21, 37, .96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22), inset 0 1px rgba(255,255,255,.03);
}

.unified-selection-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.unified-selection-identity > div {
  min-width: 0;
}

.selection-type-icon,
.progress-option-icon,
.add-progress-title > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(128, 103, 255, .24);
  background: rgba(128, 103, 255, .12);
  color: var(--primary-bright);
}

.selection-type-icon {
  width: 56px;
  height: 72px;
  border-radius: 14px;
}

.selection-poster {
  width: 50px;
  height: 74px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.selection-type-icon svg {
  width: 22px;
  height: 22px;
}

.unified-selection-card h2 {
  margin: 5px 0 4px;
  font-size: clamp(19px, 1.7vw, 24px);
}

.unified-selection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.unified-selection-card .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.add-progress-selector {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid rgba(148,163,184,.12);
}

.add-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.add-progress-heading > div {
  display: grid;
  gap: 3px;
}

.add-progress-heading .add-progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-progress-title > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.add-progress-title > span svg {
  width: 17px;
  height: 17px;
}

.add-progress-title > div {
  display: grid;
  gap: 3px;
}

.add-progress-heading strong {
  font-size: 13px;
}

.add-progress-heading small {
  color: var(--muted);
  font-size: 10px;
}

.add-progress-seasons {
  display: grid;
  gap: 9px;
}

.add-progress-season {
  overflow: hidden;
  border: 1px solid var(--border);
  border-color: rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(4, 10, 20, .32);
}

.add-progress-season > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.018);
}

.add-progress-season > header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.add-progress-season > header strong { font-size: 12px; }
.add-progress-season > header small { color: var(--muted); font-size: 9px; }

.add-season-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  cursor: pointer;
}

.add-season-all input,
.add-episode-selector input { position: absolute; opacity: 0; pointer-events: none; }

.add-season-all span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.add-season-all svg { width: 15px; }
.add-season-all input:checked + span {
  border-color: rgba(66,214,164,.42);
  background: var(--green-soft);
  color: var(--green);
}

.add-episode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px;
}

.add-episode-selector label { flex: 0 0 42px; }

.add-episode-selector label span {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #3c4961;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.add-episode-selector input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #06251c;
}

.add-episode-selector label.upcoming span {
  border-color: rgba(113,128,160,.15);
  color: #59657b;
  cursor: not-allowed;
  opacity: .58;
}

.tmdb-required-card {
  display: grid;
  max-width: 760px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 auto;
  padding: 28px;
}

.tmdb-required-card > span svg {
  width: 30px;
  height: 30px;
  color: var(--primary-bright);
}

.tmdb-required-card h2,
.tmdb-required-card p {
  margin: 0;
}

.tmdb-required-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.source-managed-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
}

.source-managed-note svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.option-action-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.option-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.022);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.option-action:hover {
  border-color: rgba(128,103,255,.42);
  background: var(--primary-soft);
}

.option-action > svg {
  width: 18px;
  height: 18px;
  margin: auto;
  color: var(--primary-bright);
}

.option-action span,
.option-action strong,
.option-action small { display: block; }
.option-action strong { font-size: 11px; }
.option-action small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.action-card {
  position: relative;
  min-height: 172px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--surface);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-card::after {
  position: absolute;
  right: -38px;
  bottom: -65px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--card-glow, var(--primary));
  filter: blur(45px);
  opacity: 0.12;
  content: "";
}

.action-card:hover {
  border-color: rgba(151, 131, 255, 0.48);
  background-color: var(--surface-hover);
  transform: translateY(-3px);
}

.action-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 11px;
  background: var(--card-tint, var(--primary-soft));
  color: var(--card-color, var(--primary-bright));
}

.action-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.action-card p {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
  margin: 25px auto 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(12, 19, 33, 0.58);
}

.stat {
  padding: 14px 18px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  margin-top: 38px;
}

.dashboard-header + .section { margin-top: 26px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.section-header h2 {
  margin: 0;
  font-size: 23px;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.continue-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 2px 1px 10px;
}

.continue-group-heading {
  display: flex;
  grid-column: 1 / -1;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 8px 2px 3px;
}

.continue-group-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.continue-group-heading svg {
  width: 16px;
  height: 16px;
}

.continue-group-heading strong,
.continue-group-heading small {
  display: block;
}

.continue-group-heading strong {
  color: var(--text-soft);
  font-size: 14px;
}

.continue-group-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.continue-group-heading.ready > span {
  border-color: rgba(66,214,164,.3);
  background: rgba(66,214,164,.09);
  color: var(--green);
}

.continue-group-heading.upcoming {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(128,103,255,.12);
}

.continue-group-heading.upcoming > span {
  border-color: rgba(128,103,255,.24);
  background: rgba(128,103,255,.075);
  color: var(--primary-bright);
}

.continue-rail::-webkit-scrollbar,
.episode-rail::-webkit-scrollbar {
  display: none;
}

.continue-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(128, 103, 255, 0.08), transparent 50%),
    var(--surface-solid);
}

.continue-art {
  position: relative;
  display: grid;
  width: calc(100% + 32px);
  height: 126px;
  margin-left: -16px;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #0a1220;
  color: var(--primary-bright);
  cursor: pointer;
}

.continue-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.continue-card:hover .continue-art > img { transform: scale(1.025); }
.continue-art > span > svg { width: 34px; height: 34px; }

.continue-art-state {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(4, 9, 18, .82);
  color: var(--state-color, white);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.continue-card-top { padding-top: 0; }
.continue-episode-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.continue-overview {
  display: -webkit-box;
  margin: 10px 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.continue-media-meta { color: #78859b; font-size: 9px; }
.continue-media-meta:empty { display: none; }

.continue-progress-panel {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(128,103,255,.24);
  border-radius: 11px;
  background: rgba(128,103,255,.07);
}

.continue-progress-panel > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(128,103,255,.14);
  color: var(--primary-bright);
}

.continue-progress-panel svg { width: 16px; height: 16px; }
.continue-progress-panel small,
.continue-progress-panel strong,
.continue-progress-panel em { display: block; }
.continue-progress-panel small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}
.continue-progress-panel strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-progress-panel em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.continue-progress-panel.has-minutes,
.continue-progress-panel.movie-progress {
  border-color: rgba(255,188,74,.25);
  background: rgba(255,188,74,.055);
}

.continue-progress-panel.has-minutes > span,
.continue-progress-panel.movie-progress > span {
  background: rgba(255,188,74,.12);
  color: var(--amber);
}

.continue-progress-panel.release-upcoming {
  border-color: rgba(128,103,255,.34);
}

.continue-progress-panel.release-available,
.continue-progress-panel.release-today {
  border-color: rgba(66,214,164,.5);
  background: rgba(66,214,164,.1);
  box-shadow: 0 0 0 1px rgba(66,214,164,.08), 0 10px 28px rgba(25,150,112,.1);
}

.continue-progress-panel.release-available > span,
.continue-progress-panel.release-today > span {
  background: rgba(66,214,164,.16);
  color: var(--green);
}

.continue-card.ready-to-watch {
  border-color: rgba(66,214,164,.46);
  background:
    linear-gradient(155deg, rgba(128,103,255,.08), transparent 50%),
    var(--surface-solid);
  box-shadow: none;
}

.continue-card.release-urgent .continue-art-state {
  background: rgba(5,34,27,.9);
  color: var(--green);
}

.continue-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.continue-filter-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.continue-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--state-color, var(--primary));
  opacity: 0.82;
  content: "";
}

.continue-card-top,
.continue-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.continue-card-badges {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.new-availability-bell {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid rgba(66,214,164,.34);
  border-radius: 50%;
  background: rgba(66,214,164,.1);
  color: var(--green);
}

.new-availability-bell svg {
  width: 12px;
  height: 12px;
}

.continue-card.ready-to-watch::before {
  height: 4px;
  background: linear-gradient(90deg, #2ed19a, #78f5c9 48%, #38c995);
  opacity: 1;
  box-shadow: none;
}

.continue-card-main {
  display: flex;
  min-height: 0;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 12px 0 9px;
}

.continue-title {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.continue-title strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.continue-title span {
  display: inline;
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
}

.continue-next {
  display: flex;
  align-items: center;
  margin: 10px 0 9px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.continue-minute {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.continue-minute svg {
  width: 14px;
  height: 14px;
}

.continue-minute.has-progress {
  color: var(--amber);
}

.continue-minute strong {
  font-size: 10px;
}

.continue-airdate {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
}

.continue-airdate > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(128,103,255,.12);
  color: var(--primary-bright);
}

.continue-airdate svg {
  width: 13px;
  height: 13px;
}

.continue-airdate strong {
  font-size: 10px;
  line-height: 1.35;
}

.continue-airdate.is-available {
  border-color: rgba(66,214,164,.36);
  background: rgba(66,214,164,.07);
  color: var(--green);
}

.continue-airdate.is-available > span {
  background: rgba(66,214,164,.14);
  color: var(--green);
}

.continue-focus {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(128,103,255,.16);
  border-radius: 11px;
  background: rgba(128,103,255,.045);
  flex-shrink: 0;
}

.continue-focus-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(128,103,255,.12);
  color: var(--primary-bright);
}

.continue-focus-icon svg {
  width: 16px;
  height: 16px;
}

.continue-card.ready-to-watch .continue-focus {
  border-color: rgba(66,214,164,.24);
  background: rgba(66,214,164,.055);
}

.continue-card.ready-to-watch .continue-focus-icon {
  background: rgba(66,214,164,.14);
  color: var(--green);
}

.continue-focus-copy {
  min-width: 0;
}

.continue-focus-copy small,
.continue-focus-copy strong {
  display: block;
}

.continue-focus-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.continue-focus-copy strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-focus em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255,188,74,.1);
  color: var(--amber);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.continue-focus em svg {
  width: 12px;
  height: 12px;
}

.continue-focus .continue-remaining {
  border: 1px solid rgba(143,155,184,.18);
  background: rgba(143,155,184,.08);
  color: var(--text-soft);
  white-space: nowrap;
}

.continue-focus-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  min-width: 0;
}

/* Remaining-time and remaining-episodes are the same UI component. */
.continue-focus-meta .continue-season-left,
.continue-focus-meta .continue-remaining {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(143,116,255,.2);
  border-radius: 8px;
  background: rgba(143,116,255,.09);
  color: #bcaeff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.continue-season-left {
  border: 1px solid rgba(143, 116, 255, .2);
  background: rgba(143, 116, 255, .09);
  color: #bcaeff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.continue-card.ready-to-watch .continue-focus .continue-remaining {
  border-color: rgba(66,214,164,.2);
  background: rgba(66,214,164,.08);
  color: #84eac8;
}

.continue-card.ready-to-watch .continue-season-left {
  border-color: rgba(66, 214, 164, .2);
  background: rgba(66, 214, 164, .09);
  color: var(--green);
}

.continue-card.ready-to-watch .continue-focus-meta .continue-season-left {
  border-color: rgba(66,214,164,.32);
  background: rgba(66,214,164,.12);
  color: var(--green);
}

.episode-inline-progress {
  display: block;
  width: min(140px, 100%);
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .075);
}

.episode-inline-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-bright);
}

.continue-card.ready-to-watch .episode-inline-progress i {
  background: var(--green);
}

.continue-release-line {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.continue-release-line svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.continue-release-line strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-release-line.is-available {
  color: var(--green);
  padding-bottom: 6px;
}

.continue-message {
  margin: 14px 0 2px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 720;
}

.continue-card-footer {
  justify-content: space-between;
  min-height: 32px;
  gap: 8px;
  margin-top: 8px;
  padding-top: 0;
  flex-shrink: 0;
}

.continue-card-footer .continue-release-line {
  min-width: 0;
  min-height: 28px;
  flex: 1;
  margin-top: 0;
  padding-bottom: 0;
}

.continue-footer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.continue-footer-spacer {
  flex: 1;
}

.continue-card:not(:has(.continue-card-footer:not(:empty))) {
  padding-bottom: 12px;
}

.continue-card-footer:empty {
  display: none;
}

.continue-card-progress {
  width: 100%;
  height: 3px;
  flex: 0 0 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.055);
}

.status-pill.ready-status em.is-in-progress {
  color: #baf8e2;
  border-left-color: rgba(120,240,197,.24);
}

.continue-card.has-playback-progress:not(.ready-to-watch) .continue-remaining {
  border-color: rgba(255,188,74,.25);
  background: rgba(255,188,74,.1);
  color: var(--amber);
}

.continue-card.has-playback-progress:not(.ready-to-watch) .episode-inline-progress i {
  background: var(--amber);
}

.continue-card-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--state-color, var(--primary));
  transition: width 260ms ease;
}

.continue-card.ready-to-watch .continue-card-progress span {
  background: var(--green);
}

.continue-card-footer .continue-icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 0;
}

.continue-icon-button svg {
  width: 16px;
  height: 16px;
}

.empty-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
}

.empty-continue p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.56;
  cursor: wait;
}

.button-primary {
  background: linear-gradient(145deg, #866dff, #6d55df);
  box-shadow: 0 8px 25px rgba(91, 68, 209, 0.24);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #927cff, #745ce9);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: white;
}

.button-success {
  border-color: rgba(66, 214, 164, 0.18);
  background: var(--green-soft);
  color: #8cebc9;
}

.button-success:hover:not(:disabled) {
  background: rgba(66, 214, 164, 0.22);
}

.button-danger {
  border-color: rgba(255, 111, 125, 0.18);
  background: var(--red-soft);
  color: #ffadb5;
}

.button-danger:hover:not(:disabled) {
  background: rgba(255, 111, 125, 0.22);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.button-compact {
  min-height: 38px;
  padding: 8px 12px;
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(32px, 4vw, 45px);
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.heading-actions,
.inline-actions,
.form-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b4a8ff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.back-button:hover {
  color: #d4ceff;
}

.back-button svg {
  width: 16px;
  height: 16px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: clamp(22px, 4vw, 36px);
}

.form-panel h2 {
  margin-bottom: 5px;
}

.form-panel > .muted {
  margin-bottom: 28px;
}

.help-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  padding: 24px;
  box-shadow: none;
}

.help-panel-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.help-list {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.help-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.help-list span {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.field label small,
.field-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.input,
.select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: 0;
  background: rgba(4, 9, 18, 0.68);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input::placeholder {
  color: #5e6a80;
}

.input:hover,
.select:hover {
  border-color: rgba(170, 186, 221, 0.36);
}

.input:focus,
.select:focus {
  border-color: rgba(139, 116, 255, 0.78);
  background: rgba(5, 10, 20, 0.9);
  box-shadow: 0 0 0 4px rgba(128, 103, 255, 0.1);
}

.input.invalid {
  border-color: rgba(255, 111, 125, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 111, 125, 0.08);
}

.tmdb-search-field {
  position: relative;
  z-index: 5;
}

.tmdb-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 360px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0b1322;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  scrollbar-width: none;
}

.tmdb-results::-webkit-scrollbar {
  display: none;
}

.tmdb-results button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.tmdb-results button > img {
  flex: 0 0 38px;
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.tmdb-result-copy {
  display: block;
  min-width: 0;
}

.tmdb-result-copy em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.tmdb-results button:hover {
  background: var(--primary-soft);
}

.tmdb-results strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmdb-results em,
.tmdb-results small,
.tmdb-no-results {
  color: var(--muted);
  font-size: 10px;
}

.tmdb-results small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tmdb-no-results {
  padding: 14px;
  text-align: center;
}

.form-error {
  display: none;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 111, 125, 0.2);
  border-radius: 11px;
  background: var(--red-soft);
  color: #ffb5bd;
  font-size: 12px;
}

.form-error.visible {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.backup-panel {
  display: flex;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.backup-panel-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green);
}

.backup-panel-icon svg {
  width: 27px;
  height: 27px;
}

.backup-panel-copy {
  min-width: 0;
}

.backup-panel-copy h2 {
  margin: 14px 0 6px;
}

.backup-panel-copy > p,
.backup-tip p {
  color: var(--muted);
  line-height: 1.7;
}

.backup-details {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
}

.backup-details > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.backup-details dt {
  color: var(--muted);
  font-size: 12px;
}

.backup-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.backup-path {
  overflow-wrap: anywhere;
}

.backup-actions {
  margin-top: 22px;
}

.backup-verification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.backup-verification svg {
  width: 14px;
  height: 14px;
}

.backup-verification.verified {
  color: var(--green);
}

.backup-verification.warning {
  color: var(--red);
}

.backup-verification.pending {
  color: var(--muted);
}

.backup-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 179, 71, 0.23);
  border-radius: 11px;
  background: rgba(255, 179, 71, 0.07);
  color: #ffd18e;
  font-size: 11px;
  line-height: 1.5;
}

.backup-tip {
  padding: 25px;
  box-shadow: none;
}

.backup-tip h3 {
  margin: 12px 0 7px;
}

.tmdb-panel {
  display: flex;
  grid-column: 1 / -1;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.tmdb-connect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 20px;
}

.tmdb-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
}

.tmdb-attribution img {
  display: block;
  width: 76px;
  height: auto;
}

.tmdb-attribution p {
  margin: 0;
}

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

  .backup-panel {
    flex-direction: column;
  }

  .tmdb-panel {
    flex-direction: column;
  }

  .tmdb-connect-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.season-builder {
  margin-top: 25px;
}

.season-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.season-builder-header h3 {
  margin: 0;
}

.season-builder-rows {
  display: grid;
  gap: 9px;
}

.season-builder-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(130px, 180px) 105px 40px;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
}

.season-watched-count {
  display: grid;
  grid-template-columns: auto 52px;
  align-items: center;
  gap: 6px;
}

.season-watched-count small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.season-watched-count .input {
  min-height: 38px;
  padding: 7px 8px;
  text-align: center;
}

.season-manage.is-watched {
  color: var(--green);
}

.rich-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.rich-detail-hero.has-backdrop::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 22, 0.98) 0%, rgba(7, 12, 22, 0.84) 48%, rgba(7, 12, 22, 0.58) 100%),
    linear-gradient(0deg, rgba(7, 12, 22, 0.96), transparent 55%),
    var(--detail-backdrop) center / cover;
  opacity: 0.64;
  content: "";
}

.rich-title-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 26px 0;
}

.video-choice {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.video-choice:hover,
.video-choice.active {
  border-color: rgba(128, 103, 255, .5);
  background: var(--primary-soft);
}

.video-choice img {
  width: 70px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}

.video-choice span,
.video-choice strong,
.video-choice small { display: block; min-width: 0; }

.video-choice strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.compact-media-experience {
  display: grid;
  grid-template-columns: 180px minmax(360px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 20px 0 16px;
}

.title-overview-experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 22px;
  align-items: end;
  margin-top: 18px;
}

.title-overview-copy {
  min-width: 0;
}

.title-overview-copy .media-tagline {
  margin: 0 0 9px;
}

.title-overview-copy .media-overview {
  max-width: 980px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.title-overview-copy .media-facts,
.title-overview-copy .genre-row,
.title-overview-copy .media-links {
  margin-top: 12px;
}

.title-media-button {
  display: grid;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(151,120,255,.34);
  border-radius: 15px;
  background: rgba(12,18,32,.64);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.title-media-button:hover {
  border-color: rgba(151,120,255,.65);
  background: rgba(151,120,255,.12);
  transform: translateY(-2px);
}

.title-media-button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(151,120,255,.15);
  color: var(--primary-bright);
}

.title-media-button svg {
  width: 17px;
  height: 17px;
}

.title-media-button strong {
  font-size: 11px;
}

.title-media-button small {
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 650px) {
  .title-overview-experience { grid-template-columns: 1fr; }
  .title-media-button {
    min-height: 54px;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
  }
}

.compact-media-poster {
  width: 180px;
  height: 270px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0,0,0,.3);
}

.compact-media-placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  color: var(--primary-bright);
}

.compact-media-placeholder svg { width: 34px; height: 34px; }

.compact-media-video {
  display: grid;
  min-width: 0;
  height: 270px;
  grid-template-rows: minmax(0, 1fr) 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #02050a;
}

.compact-media-video:not(:has(.compact-video-strip)) { grid-template-rows: 1fr; }

.compact-video-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.compact-video-stage iframe,
.compact-video-stage > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
  object-fit: cover;
}

.compact-video-preview {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #000;
  color: white;
  cursor: pointer;
}

.compact-video-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
  filter: saturate(.88);
  transition: transform 180ms ease, opacity 180ms ease;
}

.compact-video-preview:hover > img {
  opacity: .82;
  transform: scale(1.02);
}

.compact-video-preview > span {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(3,7,13,.72);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-size: 10px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.compact-video-preview svg { width: 17px; height: 17px; }

.compact-video-empty {
  display: grid;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.compact-video-empty svg { width: 28px; height: 28px; color: var(--primary-bright); }

.compact-video-strip {
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.compact-video-strip::-webkit-scrollbar { display: none; }

.compact-video-strip .video-choice {
  display: block;
  position: relative;
  flex: 0 0 72px;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
}

.compact-video-strip .video-choice img {
  width: 100%;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.compact-video-strip .video-choice span {
  position: absolute;
  inset: auto 2px 2px;
  padding: 2px 3px;
  border-radius: 4px;
  background: rgba(2,5,10,.78);
}

.compact-video-strip .video-choice strong { font-size: 7px; }
.compact-video-strip .video-choice small { display: none; }

.compact-media-copy {
  display: flex;
  min-width: 0;
  height: 270px;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4,9,18,.44);
}

.compact-media-copy .media-tagline {
  margin-bottom: 7px;
  font-size: 13px;
}

.compact-media-copy .media-facts,
.compact-media-copy .genre-row { margin-top: 7px; }

.compact-media-copy .media-overview {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.compact-media-copy .media-links {
  margin-top: auto;
  padding-top: 9px;
}

.detail-poster {
  width: 150px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.media-tagline {
  margin: 0 0 10px;
  color: #d8d2ff;
  font-size: 16px;
  font-style: italic;
  font-weight: 720;
}

.media-overview {
  max-width: 900px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.72;
}

.media-facts,
.genre-row,
.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.media-facts span,
.genre-row span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 14, 25, 0.62);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 720;
}

.genre-row span {
  border-color: rgba(128, 103, 255, 0.28);
  color: #c6bdff;
}

.tmdb-unlinked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
}

.tmdb-unlinked svg {
  width: 18px;
  height: 18px;
}

.media-info-section {
  margin-top: 30px;
}

.more-title-info {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(13,21,36,.5);
}

.more-title-info > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  padding: 10px 15px;
  list-style: none;
  cursor: pointer;
}

.more-title-info > summary::-webkit-details-marker { display: none; }
.more-title-info > summary > span { min-width: 0; margin-right: auto; }
.more-title-info > summary strong,
.more-title-info > summary small { display: block; }
.more-title-info > summary strong { font-size: 13px; }
.more-title-info > summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.more-title-info > summary svg { width: 17px; transition: transform 150ms ease; }
.more-title-info[open] > summary svg { transform: rotate(90deg); }
.more-title-info > div { padding: 0 15px 18px; }
.more-title-info > div > .media-info-section:first-child { margin-top: 10px; }

.people-rail,
.recommendation-rail {
  display: grid;
  grid-auto-columns: 128px;
  grid-auto-flow: column;
  gap: 12px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

.people-rail::-webkit-scrollbar,
.recommendation-rail::-webkit-scrollbar {
  display: none;
}

.person-card,
.recommendation-card {
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.person-card img,
.person-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  object-fit: cover;
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--primary-bright);
  font-size: 28px;
  font-weight: 850;
}

.person-card strong,
.person-card small,
.recommendation-card strong,
.recommendation-card small {
  display: block;
}

.person-card strong,
.recommendation-card strong {
  margin-top: 8px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card small,
.recommendation-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.provider-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.provider-groups > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-groups strong {
  color: var(--muted);
  font-size: 10px;
}

.provider-groups span {
  display: flex;
  gap: 7px;
}

.provider-groups img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.media-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.media-detail-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.media-detail-list dt {
  color: var(--muted);
  font-size: 10px;
}

.media-detail-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.recommendation-card {
  width: 128px;
}

.recommendation-card img,
.recommendation-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 13px;
  background: var(--surface-raised);
}

.episode-guide-list {
  display: grid;
  gap: 10px;
}

.episode-guide-season {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(13, 21, 36, 0.62);
}

.episode-guide-season-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.016);
}

.episode-guide-season-header > img,
.season-poster-placeholder {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 56px;
  place-items: center;
  object-fit: cover;
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--primary-bright);
}

.season-poster-placeholder svg { width: 18px; height: 18px; }

.guide-season-title {
  min-width: 0;
  flex: 1;
}

.guide-season-progress {
  flex: 0 0 auto;
  min-width: 72px;
  color: var(--state-color, var(--muted));
  text-align: right;
}

.episode-guide-season-header strong,
.episode-guide-season-header small {
  display: block;
}

.episode-guide-season-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.guide-season-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.episode-guide-content {
  padding: 11px 13px 13px;
}

.episode-guide-content > p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-loading,
.guide-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  color: var(--muted);
  font-size: 10px;
}

.guide-loading .loader-spinner {
  width: 16px;
  height: 16px;
}

.guide-error {
  color: var(--red);
}

.episode-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 0;
}

.episode-info-card {
  position: relative;
  display: block;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #08101c;
  color: var(--text);
  text-align: left;
  transition: 150ms ease;
  isolation: isolate;
}

.episode-info-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 17, .97) 0%, rgba(4, 9, 17, .82) 52%, rgba(4, 9, 17, .48) 100%),
    linear-gradient(0deg, rgba(4, 9, 17, .9), transparent 64%);
  content: "";
  pointer-events: none;
}

.episode-info-card:hover {
  transform: translateY(-1px);
}

.episode-info-card.watched {
  border-color: rgba(66, 214, 164, 0.32);
  background: #071712;
}

.episode-info-card.partial { border-color: rgba(255, 188, 74, .42); }
.episode-info-card.watched span { color: var(--green); }
.episode-info-card.partial span { color: var(--amber); }
.episode-info-card.upcoming {
  border-color: rgba(113, 128, 160, .2);
  opacity: .64;
}
.episode-info-card.upcoming span { color: #8996b0; }

.episode-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.episode-card-actions button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.episode-card-actions button:hover {
  border-color: var(--primary-bright);
  color: white;
}

.episode-card-actions svg { width: 13px; height: 13px; }

.episode-card-actions .episode-inline-watch {
  border-color: rgba(66, 214, 164, .26);
  background: var(--green-soft);
  color: var(--green);
}

.episode-card-actions .episode-inline-watch.is-watched {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.episode-card-backdrop {
  position: absolute;
  z-index: 0;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  filter: blur(2px) saturate(.85);
  opacity: .58;
  transform: scale(1.025);
}

.episode-still-placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid !important;
  place-items: center;
  background: linear-gradient(145deg, #111b2e, #0a111e);
  color: #58657e !important;
  opacity: .55;
}

.episode-still-placeholder svg { width: 22px; height: 22px; }

.episode-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
}

.episode-info-card span,
.episode-info-card strong,
.episode-info-card small {
  display: block;
}

.episode-info-card span {
  color: var(--primary-bright);
  font-size: 9px;
  font-weight: 760;
}

.episode-info-card strong {
  margin-top: 3px;
  font-size: 12px;
}

.episode-info-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.episode-info-card p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.episode-card-content .episode-card-actions {
  margin-top: auto;
  padding-top: 10px;
}

.season-builder-name {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 760;
}

.season-builder-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}

.remove-row {
  width: 36px;
  height: 36px;
}

.library-toolbar {
  position: sticky;
  z-index: 20;
  top: calc(var(--topbar-height) + 10px);
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(12, 19, 33, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px;
  gap: 10px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field .input {
  padding-left: 41px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.filter-groups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.14);
}

.filter-chip {
  min-height: 31px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.filter-chip:hover {
  color: var(--text-soft);
}

.filter-chip.active {
  background: var(--surface-raised);
  color: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin: 8px 2px 10px;
  color: var(--muted);
  font-size: 12px;
}

.library-list {
  display: grid;
  gap: 10px;
}

.library-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(170px, 0.7fr) minmax(145px, 0.55fr) 28px;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.library-card::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--state-color, var(--muted));
  content: "";
}

.library-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.media-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.media-icon svg {
  width: 19px;
  height: 19px;
}

.library-title {
  min-width: 0;
}

.library-title strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-title small,
.library-progress small,
.library-date {
  color: var(--muted);
  font-size: 11px;
}

.library-progress {
  min-width: 0;
}

.library-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 11px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--state-color, var(--primary));
  transition: width 280ms ease;
}

.library-status {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.library-chevron {
  color: #56627a;
}

.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--state-color, var(--muted)) 24%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--state-color, var(--muted)) 11%, transparent);
  color: var(--state-color, var(--muted));
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.ready-status {
  border-color: rgba(66,214,164,.5);
  background: linear-gradient(135deg, rgba(35,183,137,.29), rgba(66,214,164,.13));
  color: #78f0c5;
  box-shadow: none;
}

.status-pill.ready-status::before {
  display: none;
}

.status-pill.ready-status svg {
  width: 11px;
  height: 11px;
}

.status-pill.ready-status em {
  padding-left: 7px;
  border-left: 1px solid rgba(120,240,197,.24);
  color: rgba(231,255,247,.72);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .065em;
}

.type-pill {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.type-pill::before {
  display: none;
}

.state-completed { --state-color: var(--green); }
.state-in_progress { --state-color: var(--amber); }
.state-waiting { --state-color: var(--primary-bright); }
.state-planned { --state-color: var(--blue); }
.state-not_started { --state-color: #77849a; }
.state-upcoming { --state-color: #7180a0; }

.planned-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(98, 169, 255, 0.055);
  cursor: pointer;
}

.planned-toggle:hover {
  border-color: rgba(98, 169, 255, 0.32);
}

.planned-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.planned-toggle .progress-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  transition: 150ms ease;
}

.planned-toggle .progress-option-icon svg {
  width: 17px;
  height: 17px;
}

.planned-toggle input:checked + .progress-option-icon {
  border-color: rgba(66, 214, 164, .5);
  background: var(--green);
  color: #06251c;
}

.planned-toggle span,
.planned-toggle strong,
.planned-toggle small {
  display: block;
}

.planned-toggle strong {
  color: var(--text-soft);
  font-size: 12px;
}

.planned-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 40px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state-icon,
.error-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.empty-state h3 {
  margin-bottom: 5px;
}

.empty-state p {
  max-width: 390px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.discover-page {
  display: grid;
  gap: 34px;
}

.discover-heading {
  align-items: end;
}

.discover-heading .button svg,
.discover-card .button svg {
  width: 17px;
  height: 17px;
}

.discover-heading .button[hidden] {
  display: none;
}

.watch-now-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(135, 108, 255, .38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 91, 255, .18), transparent 34%),
    linear-gradient(135deg, rgba(22, 31, 52, .98), rgba(13, 23, 40, .98));
}

.watch-now-panel h1 {
  margin: 3px 0 4px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.watch-now-panel p {
  margin: 0;
  color: var(--muted);
}

.watch-now-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.watch-now-times button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
}

.watch-now-times button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.watch-now-result {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}

.watch-now-result > img,
.watch-now-result > span {
  width: 180px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
}

.watch-now-result > span {
  display: grid;
  place-items: center;
  background: var(--surface);
}

.watch-now-result > span svg { width: 30px; height: 30px; }
.watch-now-result h3 { margin: 10px 0 5px; font-size: 1.45rem; }
.watch-now-result p { margin: 10px 0 0; color: var(--muted); }

.upcoming-release-strip,
.library-update-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(19, 29, 48, .78);
  color: var(--text);
  text-align: left;
}

.library-update-notice {
  margin: 0;
  border-color: rgba(69, 215, 170, .34);
}

.upcoming-release-strip:hover,
.library-update-notice:hover { border-color: var(--primary); }
.upcoming-release-strip > svg,
.library-update-notice > svg { width: 20px; height: 20px; color: #a992ff; }
.upcoming-release-strip span,
.library-update-notice span { display: grid; gap: 2px; }
.upcoming-release-strip small,
.library-update-notice small { color: var(--muted); }

.upcoming-release-list {
  display: grid;
  gap: 8px;
}

.upcoming-release-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.upcoming-release-list button > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #ad9cff;
}

.upcoming-release-list button svg { width: 17px; height: 17px; }
.upcoming-release-list button div { display: grid; gap: 3px; }
.upcoming-release-list button small { color: var(--muted); }

.weekly-story-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(135, 108, 255, .32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 91, 255, .12), rgba(19, 29, 48, .92));
}

.weekly-story-card h2 { margin: 3px 0; }
.weekly-story-card p { margin: 0; color: var(--muted); }
.weekly-story-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: #b5a7ff;
}
.weekly-story-icon svg { width: 23px; height: 23px; }

.spoiler-settings-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 24px;
}

.spoiler-settings-panel .backup-panel-icon {
  position: static;
  width: 52px;
  height: 52px;
  margin: 0;
}

.spoiler-settings-panel .backup-panel-copy {
  min-width: 0;
}

.spoiler-settings-panel .backup-panel-copy > h2 {
  margin: 5px 0 6px;
}

.spoiler-settings-panel .backup-panel-copy > p {
  max-width: 780px;
  margin: 0 0 18px;
}

.spoiler-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.spoiler-choice-row .choice-button {
  width: 100%;
  min-height: 44px;
}

.episode-info-card.spoiler-protected .episode-card-backdrop {
  filter: blur(18px) brightness(.45);
  transform: scale(1.08);
}

.episode-info-card.spoiler-protected .episode-card-content > strong,
.episode-info-card.spoiler-protected .episode-card-content > p {
  filter: blur(7px);
  user-select: none;
}

.spoiler-reveal {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
}

.spoiler-reveal svg {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
}

.episode-info-card:not(.spoiler-protected) .spoiler-reveal {
  display: none;
}

@media (max-width: 760px) {
  .watch-now-panel { align-items: stretch; flex-direction: column; }
  .watch-now-times { justify-content: stretch; }
  .watch-now-times button { flex: 1 1 42%; }
  .watch-now-result { grid-template-columns: 1fr; }
  .watch-now-result > img, .watch-now-result > span { width: 100%; }
  .weekly-story-card { grid-template-columns: auto 1fr; }
  .weekly-story-card .button { grid-column: 1 / -1; }
  .spoiler-settings-panel { grid-template-columns: 1fr; }
  .spoiler-choice-row { grid-template-columns: 1fr; }
}

.discover-section {
  display: grid;
  gap: 15px;
}

.discover-category-bar {
  position: sticky;
  z-index: 10;
  top: 72px;
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(12, 20, 34, .9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  scrollbar-width: none;
  backdrop-filter: blur(18px);
}

.discover-category-bar::-webkit-scrollbar {
  display: none;
}

.discover-category-bar button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
}

.discover-category-bar button:hover {
  color: white;
  background: rgba(255, 255, 255, .045);
}

.discover-category-bar button.active {
  border-color: rgba(139, 111, 255, .42);
  background: var(--primary-soft);
  color: white;
}

.discover-category-bar button span {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: currentColor;
  font-size: .68rem;
}

.discover-section-heading h2 {
  margin: 0 0 3px;
  font-size: 1.35rem;
}

.discover-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.discover-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.discover-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .78rem;
}

.discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trending-controls {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.trending-controls .discover-type-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trending-controls .discover-type-switch svg {
  width: 14px;
  height: 14px;
}

.discover-type-switch {
  display: inline-flex;
  align-self: end;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 15, 28, .7);
}

.discover-type-switch button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.discover-type-switch button:hover { color: var(--text); }
.discover-type-switch button.active { color: #fff; background: rgba(123, 97, 255, .3); box-shadow: inset 0 0 0 1px rgba(139, 111, 255, .48); }

.discover-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.discover-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(24, 35, 57, .98), rgba(15, 25, 43, .98));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.discover-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 111, 255, .55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.discover-card.is-clickable {
  cursor: pointer;
}

.discover-card.is-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.preview-detail-heading {
  align-items: center;
  gap: 24px;
}

.preview-add-button {
  flex: 0 0 auto;
  min-width: 164px;
}

.preview-seasons-section {
  margin-top: 18px;
}

.preview-season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-season-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 82px;
  overflow: hidden;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 14, 27, .58);
}

.preview-season-card > img,
.preview-season-card > .season-poster-placeholder {
  width: 58px;
  height: 82px;
  object-fit: cover;
}

.preview-season-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.preview-season-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-season-card small {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1050px) {
  .preview-season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .preview-detail-heading { align-items: stretch; }
  .preview-add-button { width: 100%; }
  .preview-season-grid { grid-template-columns: 1fr; }
}

.discover-artwork {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(8, 15, 28, .75);
}

.discover-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-poster-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
}

.discover-poster-placeholder svg {
  width: 30px;
  height: 30px;
}

.discover-card-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 0;
  padding: 10px;
  gap: 5px;
  align-content: start;
}

.discover-card-body .media-type-pill {
  justify-self: start;
}

.discover-card-body > strong {
  font-size: .98rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

.discover-card-body > small {
  color: var(--muted);
}

.discover-match {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  padding: 6px 9px;
  gap: 4px;
  border: 1px solid rgba(92, 235, 190, .38);
  border-radius: 999px;
  color: #75f2ca;
  background: rgba(5, 18, 23, .82);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .34), inset 0 0 18px rgba(35, 213, 157, .08);
  backdrop-filter: blur(12px);
}

.discover-match strong {
  color: #82f4d0;
  font-size: .78rem;
  line-height: 1;
}

.discover-match small {
  color: rgba(221, 255, 244, .76);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.discover-rank-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: rgba(7,12,23,.86);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.picked-type-switch {
  justify-self: start;
  margin-bottom: 2px;
}

.picked-type-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.picked-type-switch svg { width: 15px; height: 15px; }

.discover-card-body .button {
  grid-row: 4;
  align-self: end;
  justify-self: stretch;
  margin-top: 5px;
}

.discover-picked-group {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.discover-picked-group + .discover-picked-group {
  margin-top: 28px;
}

.discover-picked-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discover-picked-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.discover-picked-heading svg { width: 17px; height: 17px; }
.discover-picked-heading h3 { margin: 0; font-size: 1rem; }
.discover-picked-heading p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }

@media (max-width: 1250px) {
  .discover-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .discover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-heading { align-items: start; }
}

.load-sentinel {
  display: grid;
  min-height: 55px;
  place-items: center;
}

/* Settings 2.0: backups are the primary action; provider status stays informational. */
.settings-page {
  gap: 18px;
  padding-bottom: 36px;
}

.settings-page .page-heading {
  margin-bottom: 0;
}

.settings-grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 14px;
}

.settings-grid .backup-panel {
  gap: 17px;
  padding: clamp(18px, 2.4vw, 27px);
  border-radius: 18px;
}

.settings-grid .backup-panel-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 13px;
}

.settings-grid .backup-panel-icon svg {
  width: 21px;
  height: 21px;
}

.settings-grid .backup-panel-copy h2 {
  margin: 10px 0 4px;
  font-size: 1.25rem;
}

.settings-grid .backup-panel-copy > p,
.settings-side-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.settings-grid .backup-details {
  margin-top: 17px;
}

.settings-grid .backup-details > div {
  grid-template-columns: 105px minmax(0,1fr);
  padding: 10px 0;
}

.settings-grid .backup-actions {
  margin-top: 16px;
}

.settings-side-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.settings-source-status {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.settings-source-status .backup-panel-copy h3,
.settings-safety-note h3 {
  margin: 9px 0 5px;
  font-size: .98rem;
}

.settings-source-status .tmdb-attribution {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.settings-sync-status {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.012);
}

.settings-sync-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.settings-sync-heading h3 {
  margin: 4px 0 0;
  font-size: .9rem;
}

.settings-sync-button {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 32px;
  padding-inline: 10px;
}

.settings-sync-button svg {
  width: 14px;
  height: 14px;
}

.settings-sync-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--accent-2);
  border: 1px solid rgba(82, 224, 188, .22);
  border-radius: 10px;
  background: rgba(82, 224, 188, .08);
}

.settings-sync-icon svg {
  width: 16px;
  height: 16px;
}

.settings-sync-heading.has-retries .settings-sync-icon {
  color: var(--accent);
  border-color: rgba(143, 112, 255, .28);
  background: rgba(143, 112, 255, .1);
}

.settings-sync-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
}

.settings-sync-details > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4, 10, 22, .28);
}

.settings-sync-details .settings-sync-detail-wide {
  grid-column: 1 / -1;
}

.settings-sync-details dt {
  color: var(--muted);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.settings-sync-details dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
}

.settings-sync-changes {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.settings-sync-changes ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.settings-sync-changes li {
  min-width: 0;
}

.settings-sync-changes li > button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(4, 10, 22, .24);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.settings-sync-changes li > button:hover,
.settings-sync-changes li > button:focus-visible {
  border-color: rgba(143, 112, 255, .48);
  background: rgba(143, 112, 255, .07);
}

.settings-sync-changes li > button:active {
  transform: translateY(1px);
}

.settings-change-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  border-radius: 8px;
  background: rgba(82, 224, 188, .08);
}

.settings-change-icon svg {
  width: 14px;
  height: 14px;
}

.settings-sync-changes li > button > span:nth-child(2) {
  min-width: 0;
}

.settings-change-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.settings-change-arrow svg {
  width: 14px;
  height: 14px;
}

.settings-sync-changes strong,
.settings-sync-changes small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-sync-changes strong {
  font-size: .72rem;
}

.settings-sync-changes small,
.settings-sync-changes > p {
  color: var(--muted);
  font-size: .64rem;
}

.settings-sync-changes small { margin-top: 2px; }
.settings-sync-changes > p { margin: 7px 2px 0; }

.settings-safety-note {
  padding: 17px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.018);
}

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

@media (max-width: 440px) {
  .settings-sync-heading { align-items: flex-start; }
  .settings-sync-button span { display: none; }
  .settings-sync-button { width: 32px; padding: 0; }
}

/* Settings 3.0: a compact system hub with one hierarchy and no duplicate panels. */
.settings-hub {
  width: min(1420px, 100%);
  margin-inline: auto;
  gap: 14px;
}

.settings-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 4px 2px 2px;
}

.settings-hero h1 {
  margin: 4px 0 3px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
}

.settings-hero p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.settings-health-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr));
  gap: 7px;
  min-width: min(100%, 465px);
}

.settings-health-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 24, 42, .58);
}

.settings-health-item > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-bright);
  border-radius: 9px;
  background: var(--primary-soft);
}

.settings-health-item.is-healthy > span {
  color: var(--accent-2);
  background: rgba(82, 224, 188, .09);
}

.settings-health-item svg { width: 15px; height: 15px; }
.settings-health-item div { min-width: 0; }
.settings-health-item strong,
.settings-health-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-health-item strong { font-size: .7rem; }
.settings-health-item small { margin-top: 2px; color: var(--muted); font-size: .61rem; }

.settings-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.settings-command-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
  padding: clamp(17px, 2vw, 23px);
  border-radius: 18px;
}

.settings-card-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.settings-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-bright);
  border: 1px solid rgba(143,112,255,.24);
  border-radius: 12px;
  background: var(--primary-soft);
}

.settings-card-icon svg { width: 19px; height: 19px; }
.settings-card-header > div { min-width: 0; }
.settings-card-header h2 { margin: 4px 0 3px; font-size: 1.08rem; }
.settings-card-header p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.settings-card-header .status-pill { align-self: start; margin-top: 1px; }

.settings-fact-grid,
.settings-sync-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.settings-fact-grid > div,
.settings-sync-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(4, 10, 22, .28);
}

.settings-fact-grid dt,
.settings-sync-metrics dt {
  color: var(--muted);
  font-size: .59rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.settings-fact-grid dd,
.settings-sync-metrics dd {
  min-width: 0;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: .73rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-fact-grid .backup-verification {
  display: flex;
  align-items: center;
  gap: 5px;
}

.settings-fact-grid .backup-verification svg { width: 13px; height: 13px; }

.settings-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 1px;
}

.settings-card-actions .button { min-height: 36px; }

.settings-sync-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(82,224,188,.2);
  border-radius: 12px;
  background: rgba(82,224,188,.045);
}

.settings-sync-summary.has-retries {
  border-color: rgba(143,112,255,.25);
  background: rgba(143,112,255,.05);
}

.settings-sync-summary > div { min-width: 0; }
.settings-sync-summary small,
.settings-sync-summary strong,
.settings-sync-summary > div > span { display: block; }
.settings-sync-summary small { color: var(--muted); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.settings-sync-summary strong { margin-top: 2px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.settings-sync-summary > div > span { margin-top: 2px; color: var(--muted); font-size: .63rem; }
.settings-sync-summary .settings-sync-button { margin-left: 0; }

.settings-latest-changes {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.settings-no-changes {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 11px;
  font-size: .68rem;
}

.settings-no-changes svg { width: 15px; height: 15px; color: var(--accent-2); }

.settings-storage-bar {
  display: grid;
  grid-template-columns: 42px minmax(220px, 1fr) minmax(220px, .8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 16px;
}

.settings-storage-copy { min-width: 0; }
.settings-storage-copy strong,
.settings-storage-copy small,
.settings-storage-copy .backup-path { display: block; }
.settings-storage-copy strong { font-size: .78rem; }
.settings-storage-copy small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.settings-storage-copy .backup-path { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }

.settings-storage-safety {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.4;
}

.settings-storage-safety svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--primary-bright); }

.settings-tmdb-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-tmdb-credit img { width: 72px; }
.settings-tmdb-credit p { max-width: 115px; margin: 0; color: var(--muted); font-size: .55rem; line-height: 1.35; }

@media (max-width: 1120px) {
  .settings-hero { align-items: start; flex-direction: column; }
  .settings-health-strip { width: 100%; }
  .settings-command-grid { grid-template-columns: 1fr; }
  .settings-storage-bar { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .settings-storage-safety { grid-column: 2; }
  .settings-tmdb-credit { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  .settings-health-strip { grid-template-columns: 1fr; }
  .settings-fact-grid,
  .settings-sync-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-card-header { grid-template-columns: 38px minmax(0, 1fr); }
  .settings-card-header .status-pill { grid-column: 2; justify-self: start; }
  .settings-sync-summary { grid-template-columns: 34px minmax(0, 1fr); }
  .settings-sync-summary .settings-sync-button { grid-column: 2; justify-self: start; }
  .settings-storage-bar { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .settings-storage-safety,
  .settings-tmdb-credit { grid-column: 2; grid-row: auto; }
}

/* Discover 2.0: one compact hierarchy, stable cards and immediate loading feedback. */
.discover-page {
  gap: 18px;
}

.discover-page .discover-heading {
  padding-bottom: 2px;
}

.discover-page .discover-heading h1 {
  margin-bottom: 4px;
}

.discover-category-bar {
  position: static;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 12px;
  background: rgba(14, 23, 39, .78);
  box-shadow: none;
}

.discover-category-bar button {
  min-height: 34px;
  padding-inline: 13px;
}

.discover-section {
  gap: 12px;
}

.discover-section-heading {
  margin-top: 2px;
}

.discover-section-heading h2 {
  font-size: 1.22rem;
}

.discover-section-heading p {
  font-size: .78rem;
}

.discover-type-switch {
  padding: 3px;
  border-radius: 10px;
}

.discover-type-switch button {
  min-height: 31px;
  padding-inline: 12px;
}

.discover-grid {
  align-items: stretch;
}

.discover-card {
  height: 100%;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.discover-card-body {
  display: flex;
  flex-direction: column;
  padding: 9px;
  gap: 5px;
}

.discover-card-body > strong {
  font-size: .88rem;
  line-height: 1.24;
}

.discover-card-body > small {
  font-size: .7rem;
}

.discover-card-body .media-type-pill {
  min-height: 20px;
  padding: 0 7px;
  font-size: .57rem;
}

.discover-card-body .button {
  width: 100%;
  min-height: 34px;
  margin-top: auto;
}

.discover-rank-badge {
  top: 7px;
  right: 7px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
}

.discover-loading {
  display: grid;
  gap: 14px;
}

.discover-loading-tabs,
.discover-loading-controls {
  display: flex;
  gap: 8px;
}

.discover-loading-tabs span,
.discover-loading-controls span,
.discover-loading-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(24, 35, 57, .72);
}

.discover-loading-tabs span::after,
.discover-loading-controls span::after,
.discover-loading-card::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.055) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: discover-sheen 1.25s ease-in-out infinite;
}

.discover-loading-tabs span {
  width: 126px;
  height: 42px;
  border-radius: 12px;
}

.discover-loading-controls span {
  width: 110px;
  height: 38px;
  border-radius: 10px;
}

.discover-loading-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.discover-loading-card {
  aspect-ratio: 2 / 4.25;
  border-radius: 13px;
}

@keyframes discover-sheen {
  to { transform: translateX(100%); }
}

@media (max-width: 1250px) {
  .discover-loading-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .discover-loading-card:nth-child(n+6) { display: none; }
}

@media (max-width: 1020px) {
  .discover-loading-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .discover-loading-card:nth-child(n+5) { display: none; }
}

@media (max-width: 760px) {
  .discover-loading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-loading-card:nth-child(n+3) { display: none; }
}

.detail-hero {
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 93% 10%, rgba(128, 103, 255, 0.13), transparent 20rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(25px, 3.5vw, 38px);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.detail-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #59657a;
}

.detail-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}

.detail-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.detail-progress-copy strong {
  color: var(--state-color, var(--primary-bright));
}

.detail-progress .progress-track {
  height: 7px;
}

.next-up-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 9, 18, 0.36);
}

.next-up-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.next-up-copy {
  min-width: 0;
  margin-right: auto;
}

.next-up-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-up-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.season-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 40, 0.74);
}

.season-info {
  min-width: 0;
}

.season-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.season-info h3 {
  margin: 0;
  font-size: 15px;
}

.season-manage {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.season-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.season-summary {
  margin-top: 5px;
  color: var(--state-color, var(--muted));
  font-size: 10px;
  font-weight: 750;
}

.season-mini-progress {
  width: 100%;
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.season-mini-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--state-color, var(--muted));
}

.episode-rail {
  display: flex;
  min-width: 0;
  gap: 8px;
  padding: 8px 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.episode {
  position: relative;
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #3c4961;
  border-radius: 50%;
  background: #0d1627;
  color: #a6b0c3;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
  transition: 140ms ease;
}

.episode:hover {
  border-color: var(--primary-bright);
  color: white;
  transform: translateY(-2px);
}

.episode.watched {
  border-color: rgba(66, 214, 164, 0.75);
  background: var(--green);
  color: #06251c;
  box-shadow: 0 5px 16px rgba(66, 214, 164, 0.16);
}

.episode.partial {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #f9d894;
}

.episode.next {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(128, 103, 255, 0.12);
  color: #c9c0ff;
}

.episode.partial::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid #0d1627;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.movie-progress-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(4, 9, 18, 0.35);
}

.movie-progress-card h3 {
  margin-bottom: 4px;
}

.movie-minute {
  color: var(--state-color, var(--text));
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.movie-minute small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.movie-progress-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  padding: 22px;
  overflow-y: auto;
  place-items: center;
  background: rgba(1, 4, 10, 0.76);
  backdrop-filter: blur(12px);
  animation: fade-in 150ms ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal {
  width: min(470px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 40%),
    #111a2c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  animation: modal-in 180ms ease both;
}

.modal-wide {
  width: min(590px, 100%);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(9px) scale(0.985); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 23px;
}

.modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.modal-body {
  padding: 22px;
}

.modal-actions {
  justify-content: flex-end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}

.modal-actions .push-left {
  margin-right: auto;
}

.bulk-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.bulk-select-toolbar > div {
  display: flex;
  gap: 14px;
}

.bulk-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  max-height: 52vh;
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}

.bulk-episode-grid::-webkit-scrollbar {
  display: none;
}

.bulk-episode {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.bulk-episode input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bulk-episode > span {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.bulk-episode:hover > span {
  border-color: rgba(128, 103, 255, 0.5);
  transform: translateY(-1px);
}

.bulk-episode input:checked + span {
  border-color: var(--primary-bright);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(155, 135, 255, 0.22);
}

.bulk-episode strong {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 11px;
}

.bulk-episode.watched strong {
  background: var(--green);
  color: #06251c;
}

.bulk-episode.partial strong {
  background: var(--amber-soft);
  color: var(--amber);
}

.bulk-episode small {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.3;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 18px;
}

.add-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.add-choice {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.add-choice:hover {
  border-color: rgba(128, 103, 255, 0.48);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.add-choice .add-popover-icon {
  margin-bottom: 21px;
}

.add-choice strong,
.add-choice small {
  display: block;
}

.add-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.choice-button {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.choice-button.active {
  border-color: rgba(128, 103, 255, 0.55);
  background: var(--primary-soft);
  color: #c6bdff;
}

.danger-zone {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 111, 125, 0.17);
  border-radius: 13px;
  background: rgba(255, 111, 125, 0.055);
}

.danger-zone h3 {
  margin-bottom: 4px;
  color: #ffb4bc;
  font-size: 13px;
}

.danger-zone p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.confirm-visual {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
}

.confirm-visual.neutral {
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.confirm-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #b8adff;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.text-button:hover {
  color: #d5ceff;
}

.text-button svg {
  width: 15px;
  height: 15px;
}

.inline-loader {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 220;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(370px, calc(100% - 40px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(20, 30, 49, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  animation: toast-in 190ms ease both;
  pointer-events: auto;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}

.toast.error .toast-icon {
  background: var(--red-soft);
  color: var(--red);
}

.toast-message {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}

.error-card {
  max-width: 500px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.error-card p {
  color: var(--muted);
}

.error-icon {
  background: var(--red-soft);
  color: var(--red);
}

.page-loading {
  min-height: 58vh;
  padding-top: 35px;
}

.branded-loader {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
}

.branded-loader strong {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 650;
}

.loader-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: linear-gradient(145deg, #9178ff, #6550db);
  box-shadow: 0 15px 36px rgba(88, 65, 207, 0.3);
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.loader-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(153, 172, 212, 0.16);
  border-top-color: var(--primary-bright);
  border-radius: 50%;
  animation: spinner-rotate 700ms linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

.skeleton {
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.skeleton::after {
  display: block;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  content: "";
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  from { transform: translateX(-140%); }
  to { transform: translateX(240%); }
}

.skeleton-title {
  width: min(480px, 80%);
  height: 50px;
  margin: 0 auto 36px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skeleton-card {
  height: 168px;
}

.mobile-nav {
  display: none;
}

.library-airdate {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.movie-add-progress {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.movie-selection-card {
  width: min(100%, 900px);
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  padding: 16px;
}

.movie-add-progress .planned-toggle {
  min-width: 132px;
  min-height: 54px;
  padding: 8px 11px;
}

.movie-progress-option {
  display: grid;
  width: 126px;
  min-height: 54px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .022);
}

.movie-progress-option .progress-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.movie-progress-option .progress-option-icon svg {
  width: 17px;
  height: 17px;
}

.movie-minute-control {
  position: relative;
  display: flex;
  align-items: center;
}

.movie-minute-control .input {
  width: 100%;
  min-height: 34px;
  padding: 8px 28px 8px 8px;
  text-align: right;
}

.movie-minute-control span {
  position: absolute;
  right: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  pointer-events: none;
}

.about-title-section {
  padding: 4px 0 14px;
}

.about-title-section .media-overview {
  max-width: 1000px;
  line-height: 1.7;
}

.series-episode-tracker {
  margin-top: 20px;
}

.episode-tracker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.episode-tracker-heading h2 {
  margin: 0;
  font-size: 22px;
}

.episode-tracker-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.episode-tracker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.episode-season-list {
  display: grid;
  gap: 10px;
}

.episode-season-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(13,21,36,.62);
}

.episode-season-row.completed {
  border-color: rgba(66,214,164,.27);
}

.episode-season-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.episode-season-title {
  min-width: 0;
  flex: 1;
}

.episode-season-title strong,
.episode-season-title small {
  display: block;
}

.episode-season-title strong {
  font-size: 13px;
}

.episode-season-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.episode-season-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}

.episode-season-media {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}

.episode-season-media:hover {
  border-color: rgba(151,120,255,.45);
  background: rgba(151,120,255,.12);
  color: var(--primary-bright);
}

.episode-season-media svg {
  width: 15px;
  height: 15px;
}

.media-viewer {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #02050a;
}

.media-viewer-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-image-viewer {
  display: grid;
  max-height: 72vh;
  place-items: center;
}

.media-viewer-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.season-media-browser {
  display: grid;
  gap: 22px;
}

.season-media-browser section {
  min-width: 0;
}

.season-media-browser h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.season-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.season-poster-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.season-media-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #050a12;
  color: white;
  cursor: pointer;
}

.season-media-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform 180ms ease, opacity 180ms ease;
}

.season-media-card:hover > img {
  opacity: 1;
  transform: scale(1.025);
}

.season-media-card > span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(2,5,10,.92));
  font-size: 9px;
  text-align: left;
}

.season-media-card > span svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.season-media-card > span strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-media-card.season-media-poster {
  aspect-ratio: 2 / 3;
}

@media (max-width: 650px) {
  .season-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.episode-season-toggle:hover,
.episode-season-toggle.is-complete {
  border-color: rgba(66,214,164,.4);
  background: var(--green-soft);
  color: var(--green);
}

.episode-season-toggle svg {
  width: 15px;
  height: 15px;
}

.episode-compact-content {
  min-width: 0;
}

.episode-compact-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}

.episode-compact-card {
  position: relative;
  width: 100%;
  min-height: 66px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(5,10,18,.5);
}

.dashboard-page {
  display: grid;
  gap: 16px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 150px;
  gap: 28px;
  align-items: center;
  min-height: 220px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 30%, rgba(126,92,255,.24), transparent 27%),
    radial-gradient(circle at 55% 110%, rgba(66,214,164,.11), transparent 36%),
    linear-gradient(135deg, rgba(20,29,50,.92), rgba(8,14,26,.9));
}

.dashboard-hero-actions {
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.dashboard-period {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(3,8,16,.34);
}

.dashboard-period button {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.dashboard-period button:hover {
  color: var(--text-soft);
}

.dashboard-period button.active {
  background: rgba(151,120,255,.18);
  color: #c9c0ff;
}

.dashboard-export {
  justify-content: center;
}

.dashboard-hero-copy h1 {
  margin: 7px 0 9px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.045em;
}

.dashboard-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-range {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-range i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-bright);
}

.completion-orbit {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary-bright) var(--completion), rgba(255,255,255,.08) 0);
  box-shadow: 0 0 45px rgba(126,92,255,.2);
}

.completion-orbit::before {
  position: absolute;
  content: "";
}

.completion-orbit > div {
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #0c1424;
}

.completion-orbit strong {
  font-size: 27px;
}

.completion-orbit span {
  width: 66px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpis article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(14,22,38,.72);
}

.dashboard-kpi-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
}

.dashboard-kpi-icon svg { width: 16px; height: 16px; }
.dashboard-kpi-icon.violet { color: #a995ff; background: rgba(151,120,255,.13); }
.dashboard-kpi-icon.blue { color: #70b7ff; background: rgba(68,151,255,.12); }
.dashboard-kpi-icon.rose { color: #ff91b8; background: rgba(255,92,151,.11); }
.dashboard-kpi-icon.green { color: var(--green); background: var(--green-soft); }
.dashboard-kpi-icon.amber { color: var(--amber); background: rgba(255,190,74,.11); }

.dashboard-kpis strong,
.dashboard-kpis small {
  display: block;
}

.dashboard-kpis strong { font-size: 19px; }
.dashboard-kpis small { margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-panel {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(11,18,31,.76);
}

.dashboard-panel-wide { grid-column: span 2; }

.dashboard-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-panel header h2 {
  margin: 4px 0 0;
  font-size: 17px;
}

.dashboard-panel header > span {
  color: var(--muted);
  font-size: 9px;
}

.movie-selection-card > .button-primary {
  min-height: 54px;
  padding-inline: 18px;
  border-radius: 13px;
  white-space: nowrap;
}

.movie-add-progress .planned-toggle span { display: grid; gap: 1px; }
.movie-add-progress .planned-toggle small { color: var(--muted); font-size: 8px; font-weight: 600; }

.activity-chart {
  display: grid;
  height: 180px;
  grid-template-columns: repeat(var(--activity-columns), minmax(58px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.activity-chart::-webkit-scrollbar { display: none; }

.activity-column {
  display: grid;
  min-width: 0;
  grid-template-rows: 18px 1fr 16px;
  gap: 5px;
  text-align: center;
}

.activity-column > div {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(to top, rgba(151,120,255,.07), transparent);
}

.activity-column i {
  display: block;
  width: min(34px, 60%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(#9e83ff, #6348dc);
  box-shadow: 0 0 22px rgba(151,120,255,.24);
}

.activity-column small,
.activity-column .activity-value {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.state-stack {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.state-stack i { min-width: 2px; }
.state-stack .amber, .state-legend .amber { background: var(--amber); }
.state-stack .blue, .state-legend .blue { background: #62a9ff; }
.state-stack .purple, .state-legend .purple { background: #9a7dff; }
.state-stack .green, .state-legend .green { background: var(--green); }

.state-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 18px;
  margin-top: 17px;
}

.state-legend div {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 7px;
  align-items: center;
}

.state-legend div > span { width: 7px; height: 7px; border-radius: 50%; }
.state-legend small { color: var(--muted); font-size: 9px; }
.state-legend strong { font-size: 11px; }

.series-progress-list {
  display: grid;
  gap: 6px;
}

.series-progress-list button {
  display: grid;
  grid-template-columns: 45px minmax(150px, .7fr) minmax(120px, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.series-progress-list button:hover { background: rgba(255,255,255,.035); }
.series-progress-list button > svg { width: 14px; color: var(--muted); }
.progress-rank { color: var(--primary-bright); font-size: 11px; font-weight: 800; }
.progress-series-copy strong, .progress-series-copy small { display: block; }
.progress-series-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-series-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.dashboard-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.dashboard-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6e51e5, #a68cff);
}

.weekday-map {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.weekday-map div { text-align: center; }
.weekday-map i {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(151,120,255,calc(.1 + var(--heat) * .28));
  border-radius: 9px;
  background: rgba(151,120,255,calc(.04 + var(--heat) * .3));
}
.weekday-map strong { display: block; margin-top: 6px; font-size: 10px; }
.weekday-map small { color: var(--muted); font-size: 8px; }

.decade-list {
  display: grid;
  gap: 9px;
}

.decade-list > div {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  gap: 8px;
  align-items: center;
}
.decade-list small { color: var(--muted); font-size: 9px; }
.decade-list > div > span { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.decade-list i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fcba0, #8be6c8); }
.decade-list strong { font-size: 9px; text-align: right; }

.rewatch-list {
  display: grid;
  gap: 6px;
}

.rewatch-list button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.rewatch-list button:hover { background: rgba(255,255,255,.035); }
.rewatch-list button > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(151,120,255,.1); color: var(--primary-bright); }
.rewatch-list svg { width: 14px; height: 14px; }
.rewatch-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rewatch-list small { color: var(--primary-bright); font-size: 9px; font-weight: 800; }
.dashboard-empty { padding: 18px 4px; color: var(--muted); font-size: 10px; }

.time-investment {
  display: grid;
  grid-template-columns: 190px minmax(180px, .8fr) minmax(300px, 1.5fr);
  gap: 22px;
  align-items: center;
}

.time-total {
  display: grid;
  justify-items: start;
}

.time-total > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(151,120,255,.13);
  color: var(--primary-bright);
}

.time-total svg { width: 18px; height: 18px; }
.time-total strong { margin-top: 10px; font-size: 28px; letter-spacing: -.035em; }
.time-total small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.time-split {
  display: grid;
  gap: 13px;
}

.time-split article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
}

.time-split small { color: var(--muted); font-size: 9px; }
.time-split strong { font-size: 11px; }
.time-split span { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.time-split i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7354e7, #aa91ff); }
.time-split article:nth-child(2) i { background: linear-gradient(90deg, #3da9e8, #78ccff); }

.time-facts,
.collection-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.time-facts > div,
.collection-facts > div {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}

.time-facts strong,
.time-facts small,
.collection-facts strong,
.collection-facts small {
  display: block;
}

.time-facts strong,
.collection-facts strong { font-size: 14px; }
.time-facts small,
.collection-facts small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }

.genre-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.genre-dashboard > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 11px;
  align-items: center;
}

.genre-dashboard span strong,
.genre-dashboard span small {
  display: block;
}

.genre-dashboard span strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.genre-dashboard span small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.genre-dashboard > div > i { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.genre-dashboard b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7051de, #a38aff); }
.genre-dashboard .genre-leading b { background: linear-gradient(90deg, #38c79b, #88e4c5); }

.collection-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-investment { grid-template-columns: 150px 1fr; }
  .time-facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .completion-orbit { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 650px) {
  .dashboard-hero { grid-template-columns: 1fr; padding: 24px; }
  .dashboard-hero-actions,
  .completion-orbit { grid-column: auto; grid-row: auto; }
  .completion-orbit { width: 112px; height: 112px; }
  .completion-orbit > div { width: 90px; height: 90px; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-panel-wide { grid-column: auto; }
  .series-progress-list button { grid-template-columns: 42px 1fr 14px; }
  .dashboard-progress-track { grid-column: 1 / -1; }
  .time-investment { grid-template-columns: 1fr; }
  .time-facts { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-dashboard { grid-template-columns: 1fr; }
  .collection-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body {
    padding: 0 !important;
    background: #080d18 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .topbar,
  .mobile-nav,
  .ambient,
  .loading-bar,
  .dashboard-hero-actions,
  .toast-region {
    display: none !important;
  }
  .app-main,
  .topbar-inner {
    width: 100% !important;
    max-width: none !important;
  }
  .dashboard-page {
    gap: 9px;
  }
  .dashboard-hero,
  .dashboard-panel,
  .dashboard-kpis article {
    break-inside: avoid;
  }
  .dashboard-hero {
    min-height: 150px;
    padding: 20px 24px;
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .dashboard-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .dashboard-panel {
    padding: 14px;
  }
}

.dashboard-export-mode body {
  padding: 0 !important;
  background: #080d18 !important;
}

.dashboard-export-mode .topbar,
.dashboard-export-mode .mobile-nav,
.dashboard-export-mode .ambient,
.dashboard-export-mode .loading-bar,
.dashboard-export-mode .dashboard-hero-actions,
.dashboard-export-mode .toast-region {
  display: none !important;
}

.dashboard-export-mode .app-main {
  width: 100% !important;
  max-width: none !important;
  padding: 18px !important;
}

.dashboard-export-mode .dashboard-page {
  gap: 10px;
}

.dashboard-export-mode .dashboard-hero,
.dashboard-export-mode .dashboard-panel,
.dashboard-export-mode .dashboard-kpis article {
  break-inside: avoid;
}

.episode-watch-toggle {
  display: flex;
  width: 100%;
  min-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 8px 7px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
}

.episode-watch-toggle strong {
  font-size: 14px;
}

.episode-watch-toggle small {
  display: block;
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-compact-card.watched {
  border-color: rgba(66,214,164,.58);
  background: rgba(66,214,164,.14);
}

.episode-compact-card.watched .episode-watch-toggle {
  color: var(--green);
}

.episode-compact-card.partial {
  border-color: rgba(255,188,74,.52);
}

.episode-compact-card.upcoming {
  opacity: .48;
}

.episode-watch-toggle:disabled {
  cursor: default;
}

.episode-minute-button {
  position: absolute;
  right: 5px;
  top: 5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  grid-auto-flow: column;
  gap: 3px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(3,7,13,.82);
  color: var(--muted);
  cursor: pointer;
}

.episode-minute-button svg {
  width: 11px;
  height: 11px;
}

.episode-minute-button span {
  font-size: 7px;
  font-weight: 800;
}

.episode-minute-button.has-minutes {
  border-color: rgba(255,188,74,.32);
  color: var(--amber);
}

@media (max-width: 900px) {
  .compact-media-experience {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .compact-media-poster {
    width: 160px;
    height: 240px;
  }

  .compact-media-video {
    height: 240px;
  }

  .compact-media-copy {
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    min-height: 170px;
  }

  .continue-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-card:last-child {
    grid-column: 1 / -1;
  }

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

  .help-panel {
    position: static;
  }

  .library-card {
    grid-template-columns: 42px minmax(0, 1fr) minmax(145px, 0.65fr) 28px;
  }

  .library-date {
    display: none;
  }

  .season-row {
    grid-template-columns: 165px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .movie-add-progress,
  .episode-season-row {
    grid-template-columns: 1fr;
  }

  .episode-tracker-heading {
    display: block;
  }

  .episode-tracker-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .episode-compact-card {
    width: 70px;
  }

  .compact-media-experience {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 9px;
  }

  .compact-media-poster {
    width: 104px;
    height: 156px;
    border-radius: 11px;
  }

  .compact-media-video {
    height: 156px;
    grid-template-rows: minmax(0, 1fr) 44px;
    border-radius: 11px;
  }

  .compact-video-strip .video-choice {
    flex-basis: 58px;
  }

  .compact-video-strip .video-choice img {
    height: 32px;
  }
  .action-grid-simplified {
    grid-template-columns: 1fr;
  }

  .unified-selection-card,
  .tmdb-required-card {
    grid-template-columns: 1fr;
  }

  .unified-selection-card .button {
    width: 100%;
  }

  .unified-result {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .unified-result > img,
  .result-poster-placeholder {
    width: 46px;
    height: 68px;
  }

  .unified-result > i {
    display: none;
  }

  .rich-title-summary {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
  }

  .detail-poster {
    width: 92px;
  }

  .media-overview {
    font-size: 11px;
  }

  .media-detail-list {
    grid-template-columns: 1fr;
  }

  .episode-info-card {
    flex-basis: min(88vw, 440px);
  }

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

  .continue-filters {
    justify-content: flex-start;
    margin-top: 12px;
  }

  :root {
    --topbar-height: 64px;
  }

  body {
    padding-bottom: 66px;
  }

  .topbar-inner,
  .app-main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar {
    height: var(--topbar-height);
  }

  .brand-copy,
  .main-nav,
  .topbar-add-title,
  .search-shortcut,
  .topbar-actions .button,
  .topbar-actions .add-menu {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .mobile-page-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .app-main {
    padding-top: 27px;
    padding-bottom: 48px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 62px;
    padding: 5px;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: rgba(13, 21, 36, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 1px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
  }

  .mobile-nav button svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav button.active {
    background: var(--primary-soft);
    color: #c5bcff;
  }

  .mobile-nav button:last-child {
    color: #bdb3ff;
  }

  .mobile-nav button:last-child.active {
    background: linear-gradient(145deg, rgba(134, 109, 255, 0.28), rgba(109, 85, 223, 0.2));
    color: white;
  }

  .hero {
    padding-top: 13px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .action-card,
  .action-card:last-child {
    min-height: 135px;
    grid-column: auto;
  }

  .action-card-icon {
    margin-bottom: 14px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .section {
    margin-top: 40px;
  }

  .continue-card {
    flex-basis: min(82vw, 292px);
  }

  .page-heading,
  .detail-heading {
    display: block;
  }

  .heading-actions,
  .detail-heading > .heading-actions {
    margin-top: 16px;
  }

  .form-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 22px 18px;
  }

  .season-builder-row {
    grid-template-columns: minmax(90px, 1fr) 110px 36px;
    padding-left: 11px;
  }

  .season-watched-count {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 90px;
  }

  .season-builder-name small {
    display: none;
  }

  .library-toolbar {
    top: calc(var(--topbar-height) + 7px);
    padding: 11px;
  }

  .filter-row {
    display: block;
    overflow: hidden;
  }

  .filter-groups {
    flex-wrap: nowrap;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-groups::-webkit-scrollbar {
    display: none;
  }

  .library-card {
    grid-template-columns: 39px minmax(0, 1fr) 24px;
    gap: 11px;
    padding: 13px;
  }

  .media-icon {
    width: 38px;
    height: 38px;
  }

  .library-progress,
  .library-status {
    grid-column: 2 / 3;
  }

  .library-progress {
    margin-top: -5px;
  }

  .library-status {
    display: flex;
    align-items: center;
  }

  .library-chevron {
    grid-row: 1 / 4;
    grid-column: 3;
  }

  .detail-hero {
    padding: 21px 17px;
  }

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

  .next-up-card {
    flex-wrap: wrap;
  }

  .next-up-card .button {
    width: 100%;
  }

  .season-row {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 9px;
    min-height: 86px;
    padding: 10px;
  }

  .season-info h3 {
    font-size: 13px;
  }

  .season-summary {
    font-size: 9px;
  }

  .episode {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .movie-progress-card {
    grid-template-columns: 1fr;
  }

  .movie-progress-actions {
    justify-content: stretch;
  }

  .movie-progress-actions .button {
    flex: 1;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px 22px 17px 17px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .modal-actions .button {
    width: 100%;
  }

  .modal-actions .push-left {
    grid-column: 1 / -1;
    margin: 0;
  }

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

  .add-choice {
    min-height: 105px;
  }

  .empty-continue {
    display: block;
    text-align: center;
  }

  .empty-continue .button {
    margin-top: 15px;
  }

  .toast-region {
    right: 14px;
    bottom: 84px;
    width: calc(100% - 28px);
  }

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

  .skeleton-card:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 700px) {
  .add-episode-selector,
  .episode-compact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .episode-compact-card {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .add-progress-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .add-progress-heading .button {
    width: 100%;
  }

  .add-progress-season > header {
    align-items: stretch;
    flex-direction: column;
  }

  .add-progress-season > header > div {
    justify-content: space-between;
  }

  .add-season-all span {
    justify-content: center;
  }

  .episode-guide-season-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .guide-season-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guide-season-actions .button {
    width: 100%;
  }

  .episode-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .episode-info-card {
    min-height: 150px;
  }
}

@media (max-width: 520px) {
  .episode-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-season-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final compact movie add card overrides */
.movie-selection-card { width:min(100%,820px); grid-template-columns:minmax(240px,1fr) auto; gap:18px; padding:14px; border-color:rgba(139,111,255,.18); border-radius:18px; background:linear-gradient(135deg,rgba(18,28,48,.98),rgba(9,17,31,.98)); }
.movie-selection-card .selection-poster { width:50px; height:74px; }
.movie-add-progress { display:flex; gap:6px; align-items:center; justify-self:end; padding:5px; border:1px solid rgba(148,163,184,.14); border-radius:15px; background:rgba(4,10,22,.38); }
.movie-add-progress .movie-progress-option,.movie-add-progress .planned-toggle { min-width:0; min-height:42px; margin:0; padding:5px 7px; border:0; border-radius:11px; background:transparent; }
.movie-add-progress .movie-progress-option { display:flex; width:auto; grid-template-columns:none; gap:6px; }
.movie-add-progress .planned-toggle { min-width:106px; }
.movie-add-progress .progress-option-icon { width:30px; height:30px; border-radius:9px; }
.movie-minute-control { position:relative; display:flex; width:62px; height:32px; align-items:center; border:1px solid rgba(148,163,184,.2); border-radius:9px; background:rgba(2,8,20,.72); }
.movie-minute-control input { width:100%; height:100%; padding:0 25px 0 8px; border:0; outline:0; background:transparent; color:var(--text); text-align:right; font:inherit; font-size:11px; }
.movie-minute-control small { position:absolute; right:7px; color:var(--muted); font-size:8px; font-weight:750; pointer-events:none; }
.movie-add-submit { min-width:84px; min-height:42px; padding-inline:13px; border-radius:11px; white-space:nowrap; }
.movie-selection-card>.form-error { grid-column:1/-1; }
@media (max-width:760px) { .movie-selection-card { grid-template-columns:1fr; } .movie-add-progress { justify-self:stretch; } .movie-add-submit { flex:1; } }

.home-add { position: relative; }
.home-add[hidden], .home-add-launcher[hidden] { display: none !important; }
.home-add-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.home-add-close:hover { color: var(--text); background: rgba(255,255,255,.07); transform: scale(1.04); }
.home-add-close svg { width: 16px; height: 16px; }
.home-add-launcher {
  display: inline-flex;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  margin: 8px 0 26px;
  padding: 0 15px;
  border: 1px solid rgba(139,111,255,.3);
  border-radius: 12px;
  background: rgba(128,103,255,.12);
  color: #c7bcff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.home-add-launcher:hover { border-color: rgba(139,111,255,.55); background: rgba(128,103,255,.2); transform: translateY(-1px); }
.home-add-launcher svg { width: 16px; height: 16px; }

/* Clear close control */
.home-add-close {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 100, 117, .42);
  border-radius: 10px;
  background: rgba(255, 76, 96, .13);
  color: #ff7182;
  box-shadow: 0 7px 20px rgba(255, 50, 75, .08);
}
.home-add-close:hover { border-color: rgba(255,113,130,.7); background: rgba(255,76,96,.22); color: #fff; }
.home-add-close svg { width: 17px; height: 17px; stroke-width: 2.5; }

/* Add-series episode tracker mirrors the title detail view */
.series-selection-card {
  width: 100%;
  grid-template-columns: 1fr;
}
.add-episode-tracker { padding-top: 14px; }
.add-progress-seasons { display: grid; gap: 8px; }
.add-episode-season-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(13,21,36,.62);
}
.add-episode-season-header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.add-episode-season-header > div { min-width: 0; flex: 1; }
.add-episode-season-header strong,
.add-episode-season-header small { display: block; }
.add-episode-season-header strong { font-size: 13px; }
.add-episode-season-header small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.add-season-all { flex: 0 0 auto; cursor: pointer; }
.add-season-all input,
.add-episode-card input { position: absolute; opacity: 0; pointer-events: none; }
.add-season-all > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  transition: .15s ease;
}
.add-season-all > span svg { width: 15px; height: 15px; }
.add-season-all input:checked + span { border-color: rgba(66,214,164,.5); background: var(--green-soft); color: var(--green); }
.add-episode-compact-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}
.add-episode-card { position: relative; min-width: 0; cursor: pointer; }
.add-episode-card > span {
  position: relative;
  display: flex;
  min-height: 56px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 7px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(5,10,18,.5);
  color: var(--text-soft);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.add-episode-card:hover > span { border-color: rgba(151,120,255,.55); transform: translateY(-1px); }
.add-episode-card strong { font-size: 14px; }
.add-episode-card small { display:block; width:100%; margin-top:5px; overflow:hidden; color:var(--muted); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.add-episode-card svg { position:absolute; top:5px; right:5px; width:11px; height:11px; padding:4px; box-sizing:content-box; border:1px solid rgba(255,255,255,.08); border-radius:6px; color:var(--muted); background:rgba(3,7,13,.82); }
.add-episode-card input:checked + span { border-color:rgba(66,214,164,.58); background:rgba(66,214,164,.14); color:var(--green); }
.add-episode-card.upcoming { opacity:.46; cursor:default; }
.add-episode-card.upcoming:hover > span { border-color:var(--border-strong); transform:none; }
@media (max-width:1100px) { .add-episode-compact-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:760px) { .add-episode-season-row { grid-template-columns:1fr; } .add-episode-compact-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }

/* Placement and legacy-rule corrections */
.home-add-copy .home-add-close {
  position: static;
  margin-left: auto;
  flex: 0 0 34px;
}
.add-progress-season.add-episode-season-row {
  overflow: visible;
}
.add-progress-season.add-episode-season-row > .add-episode-season-header {
  padding: 0;
  border: 0;
  background: transparent;
}
.add-progress-season.add-episode-season-row > .add-episode-season-header > div {
  display: block;
}
.add-episode-season-header small b {
  margin: 0 3px;
  color: rgba(148,163,184,.55);
  font-weight: 600;
}

input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.home-add-search-wrap {
  --search-grow: 0px;
}
.home-add-search-wrap .home-unified-search,
.home-add-search-wrap .home-search-status {
  width: min(100%, calc(300px + var(--search-grow)));
  transition: width .24s cubic-bezier(.2,.75,.25,1);
}

.home-add {
  grid-template-columns: minmax(190px,.45fr) minmax(300px,1.55fr);
  column-gap: 18px;
  width: min(100%, 780px);
  margin: 5px auto 24px;
  padding: 12px 14px;
  border-radius: 17px;
  transition: width .28s cubic-bezier(.2,.75,.25,1);
}
.home-add:has(#unifiedSelection:not(:empty)) { width: 100%; }
.home-add-copy { gap: 10px; }
.home-add-icon { width: 34px; height: 34px; border-radius: 10px; }
.home-add-icon svg { width: 15px; height: 15px; }
.home-add-copy small { font-size: 8px; }
.home-add-copy strong { font-size: 14px; }
.home-unified-search .input { min-height: 42px; font-size: 12px; }
.home-search-status { min-height: 13px; padding: 3px 7px 0; font-size: 8px; }
.continue-season-left {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-color: color-mix(in srgb, var(--state-color,var(--muted)) 24%,transparent) !important;
  border-radius: 99px;
  background: color-mix(in srgb, var(--state-color,var(--muted)) 11%,transparent) !important;
  color: var(--state-color,var(--muted)) !important;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.continue-season-left::before { width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:currentColor; content:""; }

/* A Ready card uses one consistent green visual language. */
.continue-card.ready-to-watch .continue-focus-meta .continue-season-left {
  border-color: rgba(66,214,164,.32) !important;
  background: rgba(66,214,164,.12) !important;
  color: var(--green) !important;
}

/* Final UI consistency rules. Keep these last so legacy rules cannot win. */
html,
body,
body *,
body *::before,
body *::after,
button,
input,
select,
textarea,
option {
  font-family: "Segoe UI", Arial, sans-serif !important;
}

.continue-rail .continue-card {
  height: auto;
  min-height: 0;
  align-self: stretch;
  padding-bottom: 12px;
}

.continue-rail .continue-card-main {
  flex: 0 0 auto;
}

.continue-focus-meta .continue-season-left,
.continue-focus-meta .continue-remaining {
  box-sizing: border-box;
  min-height: 25px;
  padding: 5px 8px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 8px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.continue-card.ready-to-watch .continue-focus-meta .continue-season-left,
.continue-card.ready-to-watch .continue-focus-meta .continue-remaining {
  border-color: rgba(66,214,164,.32) !important;
  background: rgba(66,214,164,.12) !important;
  color: var(--green) !important;
}

/* Precisely center all compact labels and pills. */
.continue-card .type-pill,
.continue-card .status-pill,
.continue-card .ready-status,
.continue-card .continue-season-left,
.continue-card .continue-remaining {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle;
  line-height: 1 !important;
}

.continue-card .type-pill,
.continue-card .status-pill,
.continue-card .ready-status {
  min-height: 25px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.continue-card .type-pill::before,
.continue-card .status-pill::before {
  align-self: center;
}

.continue-card-top {
  min-height: 25px;
  align-items: center;
}


.home-unified-results { gap: 5px; }
.home-unified-results .unified-result {
  grid-template-columns: 38px minmax(0,1fr) 18px;
  min-height: 54px;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 10px;
}
.home-unified-results .unified-result > img,
.home-unified-results .result-poster-placeholder { width:38px; height:48px; border-radius:7px; }
.home-unified-results .unified-result small { font-size:8px; }
.home-unified-results .unified-result strong { margin-top:2px; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.home-unified-results .unified-result > i svg { width:14px; height:14px; }

.movie-add-progress .movie-icon-action {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(139,111,255,.25);
  border-radius: 11px;
  background: rgba(128,103,255,.1);
  color: var(--primary-bright);
  cursor: pointer;
}
.movie-add-progress button.movie-icon-action:hover,
.movie-add-progress label.movie-icon-action:hover { border-color:rgba(139,111,255,.5); background:rgba(128,103,255,.19); }
.movie-add-progress .movie-icon-action svg { width:17px; height:17px; }
.movie-add-progress .planned-toggle.movie-icon-action { min-width:42px; }
.movie-add-progress .planned-toggle.movie-icon-action .progress-option-icon { width:auto; height:auto; border:0; background:transparent; }
.movie-add-progress .planned-toggle.movie-icon-action input:checked + .progress-option-icon { color:var(--green); }
.movie-add-progress #unifiedMovieMinuteButton.is-active,
.movie-add-progress #unifiedMovieMinuteButton.is-active:hover {
  border-color: rgba(255,188,74,.5);
  background: rgba(255,188,74,.14);
  color: var(--amber);
}
.movie-add-progress .planned-toggle.movie-icon-action:has(input:checked) {
  border-color: var(--green);
  background: var(--green);
  color: #06251c;
  box-shadow: 0 7px 20px rgba(66,214,164,.16);
}
.movie-add-progress .planned-toggle.movie-icon-action:has(input:checked) .progress-option-icon { color:#06251c; }
.movie-add-progress .movie-add-submit.movie-icon-action { border-color:transparent; background:var(--primary); color:#fff; }
.movie-add-progress .movie-add-submit.movie-icon-action:hover { background:var(--primary-bright); }
.continue-card[role="link"] { cursor:pointer; }
.continue-card[role="link"]:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}
@media (max-width:760px) {
  .home-add { grid-template-columns:1fr; gap:10px; }
  .home-add-search-wrap .home-unified-search,
  .home-add-search-wrap .home-search-status { width:100%; }
}

/* Home 2.0 — grouped, compact and consistent. */
.home-page {
  margin-top: -42px;
}

.home-page > .section {
  margin-top: 0;
}

.home-page .section-header {
  margin-bottom: 18px;
  padding: 0 2px;
}

.home-page .section-header h2 {
  font-size: clamp(22px, 1.6vw, 28px);
  letter-spacing: -.035em;
}

.continue-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}

.continue-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(128,103,255,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(128,103,255,.035), rgba(255,255,255,.008));
}

.continue-group-ready {
  border-color: rgba(66,214,164,.16);
  background: linear-gradient(145deg, rgba(66,214,164,.04), rgba(255,255,255,.008));
}

.continue-group-heading,
.continue-group-heading.upcoming {
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.continue-group-heading > span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 9px;
}

.continue-group-heading strong {
  font-size: 13px;
}

.continue-group-heading small {
  font-size: 9px;
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.continue-grid .continue-card {
  height: 100%;
  min-height: 0;
  padding: 13px;
  border-radius: 15px;
}

.continue-grid .continue-card-main {
  padding: 10px 0 8px;
}

.continue-grid .continue-title strong {
  font-size: 16px;
  line-height: 1.25;
}

.continue-grid .continue-title span {
  font-size: 10px;
}

.continue-grid .continue-focus {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 54px;
  margin-top: 9px;
  padding: 7px;
}

.continue-focus-art {
  width: 36px;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(128,103,255,.1);
}

.continue-focus-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-grid .continue-focus-copy strong {
  font-size: 11px;
}

.continue-grid .continue-release-line {
  margin-top: 0;
}

.continue-grid .continue-card-footer {
  min-height: 32px;
  margin-top: 7px;
}

.continue-grid .continue-card-progress {
  margin-top: 1px;
}

.continue-grid .continue-focus-meta .continue-season-left,
.continue-grid .continue-focus-meta .continue-remaining {
  min-height: 23px;
  padding: 4px 7px !important;
  font-size: 8px !important;
}

@media (max-width: 1180px) {
  .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page { margin-top: -18px; }
  .continue-group { padding: 10px; border-radius: 15px; }
  .continue-grid { grid-template-columns: 1fr; }
}

/* Library 2.0 — one calm control surface and scannable media rows. */
.library-page {
  padding-bottom: 34px;
}

.library-heading {
  margin-bottom: 17px;
}

.library-heading h1 {
  letter-spacing: -.045em;
}

.library-toolbar {
  top: calc(var(--topbar-height) + 8px);
  margin-bottom: 10px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(10,17,30,.92);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.library-toolbar .search-row {
  grid-template-columns: minmax(260px,1fr) 170px;
  gap: 8px;
}

.library-toolbar .search-field .input,
.library-toolbar .select {
  min-height: 40px;
  border-radius: 11px;
}

.library-toolbar .filter-row {
  margin-top: 8px;
}

.library-toolbar .filter-groups {
  width: 100%;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.library-toolbar .filter-groups::-webkit-scrollbar {
  display: none;
}

.library-toolbar .filter-group {
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 10px;
}

.library-toolbar .filter-chip {
  min-height: 29px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 10px;
}

.library-page .results-meta {
  min-height: 27px;
  margin: 4px 3px 7px;
  font-size: 10px;
}

.library-page .library-list {
  gap: 7px;
}

.library-skeleton {
  height: 70px;
  border-radius: 14px;
}

.library-page .library-card {
  grid-template-columns: 38px minmax(170px,1.35fr) minmax(180px,.8fr) minmax(150px,.55fr) 20px;
  min-height: 70px;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(18,29,49,.72);
  transform: none;
}

.library-page .library-card::before {
  top: 10px;
  bottom: 10px;
  width: 2px;
}

.library-page .library-card:hover {
  border-color: color-mix(in srgb, var(--state-color,var(--primary)) 38%, var(--border));
  background: rgba(24,37,61,.9);
  transform: translateX(2px);
}

.library-page .media-icon {
  width: 36px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
}

.library-page .media-icon.has-poster {
  background: #080e18;
}

.library-page .media-icon.has-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-page .media-icon svg {
  width: 17px;
  height: 17px;
}

.library-page .library-title strong {
  font-size: 14px;
}

.library-page .library-title small,
.library-page .library-progress small,
.library-page .library-airdate {
  font-size: 9px;
}

.library-page .library-progress-label {
  margin-bottom: 6px;
  font-size: 10px;
}

.library-page .progress-track {
  height: 3px;
}

.library-page .library-status {
  gap: 4px;
}

.library-page .library-chevron svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .library-page .library-card {
    grid-template-columns: 38px minmax(0,1fr) minmax(155px,.7fr) 20px;
  }
  .library-page .library-status { display: none; }
}

@media (max-width: 650px) {
  .library-toolbar { position: static; }
  .library-toolbar .search-row { grid-template-columns: 1fr; }
  .library-page .library-card {
    grid-template-columns: 38px minmax(0,1fr) 18px;
  }
  .library-page .library-progress { display: none; }
}

/* Library 3.0 — collection overview, clearer controls and denser rows. */
.library-page {
  --library-surface: rgba(15,24,41,.82);
  max-width: 1720px;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.library-heading p:last-child { max-width: 560px; }

.library-overview {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--library-surface);
}

.library-overview-item {
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 11px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}

.library-overview-item:last-child { border-right: 0; }
.library-overview-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--primary-soft);
  background: rgba(124,92,255,.12);
}
.library-overview-icon svg { width: 16px; height: 16px; }
.library-overview-item > span:last-child { display: grid; gap: 1px; }
.library-overview-item strong { font-size: 17px; line-height: 1; }
.library-overview-item small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.library-overview-skeleton { min-height: 66px; border-radius: 0; }

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(340px,.72fr) minmax(0,1.28fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-color: rgba(132,148,180,.2);
  background: rgba(8,14,25,.94);
}

.library-toolbar .search-row { grid-template-columns: minmax(220px,1fr) 155px; }
.library-toolbar .filter-row { min-width: 0; margin-top: 0; gap: 7px; }
.library-filter-label { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.library-toolbar .filter-groups { align-items: center; }
.library-toolbar .filter-group { border: 0; background: rgba(255,255,255,.025); }

.library-page .results-meta button {
  border: 0;
  padding: 0;
  color: var(--primary-soft);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.library-page .library-list { gap: 6px; }
.library-page .library-card {
  grid-template-columns: 38px minmax(190px,1.25fr) minmax(210px,.85fr) minmax(175px,.6fr) 18px;
  min-height: 66px;
  padding: 8px 12px;
  border-color: rgba(132,148,180,.17);
  background: rgba(16,26,44,.72);
}
.library-page .library-card::before { top: 9px; bottom: 9px; }
.library-page .library-title { min-width: 0; }
.library-page .library-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-page .library-title small { margin-top: 3px; }
.library-page .library-progress-label > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-page .library-status { align-items: flex-end; text-align: right; }
.library-page .library-airdate { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .library-toolbar { grid-template-columns: 1fr; }
  .library-page .library-card { grid-template-columns: 38px minmax(180px,1fr) minmax(170px,.75fr) minmax(145px,.55fr) 18px; }
}

@media (max-width: 760px) {
  .library-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-overview-item:nth-child(2) { border-right: 0; }
  .library-overview-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .library-toolbar .search-row { grid-template-columns: 1fr; }
  .library-filter-label { display: none; }
}

/* Detail 2.0 — shared hierarchy for movies and TV series. */
.detail-page {
  padding-bottom: 38px;
}

.detail-page > .back-button {
  min-height: 32px;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 10px;
}

.detail-page .detail-hero {
  padding: clamp(16px,2vw,22px);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
}

.detail-page .rich-detail-hero.has-backdrop::after {
  background:
    linear-gradient(90deg, rgba(7,12,22,.985) 0%, rgba(7,12,22,.9) 50%, rgba(7,12,22,.66) 100%),
    linear-gradient(0deg, rgba(7,12,22,.96), transparent 60%),
    var(--detail-backdrop) center / cover;
  opacity: .72;
}

.detail-page .detail-title-row h1 {
  font-size: clamp(25px,3vw,36px);
  letter-spacing: -.045em;
}

.detail-page .detail-meta {
  margin-top: 7px;
  font-size: 10px;
}

.detail-page .title-overview-experience {
  grid-template-columns: minmax(0,1fr) 98px;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.detail-page .title-overview-experience.has-poster {
  grid-template-columns: 104px minmax(0,1fr) 98px;
}

.title-overview-poster {
  display: block;
  width: 104px;
  height: 156px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: #070c15;
  box-shadow: 0 13px 30px rgba(0,0,0,.25);
}

.detail-page .title-overview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.detail-page .title-overview-copy .media-tagline {
  margin-bottom: 7px;
  font-size: 12px;
}

.detail-page .title-overview-copy .media-overview {
  max-width: 1050px;
  font-size: 11px;
  line-height: 1.62;
}

.detail-page .title-overview-copy .media-facts,
.detail-page .title-overview-copy .genre-row,
.detail-page .title-overview-copy .media-links {
  margin-top: 9px;
}

.detail-page .media-facts span,
.detail-page .genre-row span {
  padding: 4px 7px;
  font-size: 8px;
}

.detail-page .media-links .button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 9px;
}

.detail-page .title-media-button {
  min-height: 100%;
  border-radius: 13px;
}

.detail-page .movie-progress-card {
  grid-template-columns: minmax(150px,.55fr) minmax(0,1fr);
  gap: 15px;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 13px;
}

.detail-page .movie-minute {
  font-size: 22px;
}

.detail-page .movie-minute small {
  font-size: 9px;
}

.detail-page .movie-progress-actions {
  gap: 6px;
}

.detail-page .movie-progress-actions .button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 10px;
}

.detail-page .series-episode-tracker {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(128,103,255,.13);
  border-radius: 18px;
  background: rgba(11,18,31,.48);
}

.detail-page .episode-tracker-heading {
  align-items: center;
  margin-bottom: 11px;
}

.detail-page .episode-tracker-heading h2 {
  font-size: 19px;
  letter-spacing: -.025em;
}

.detail-page .episode-tracker-actions .button {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 9px;
}

.detail-page .episode-season-list {
  gap: 8px;
}

.detail-page .episode-season-row {
  grid-template-columns: 178px minmax(0,1fr);
  gap: 11px;
  padding: 10px 11px;
  border-radius: 13px;
}

.detail-page .episode-compact-grid {
  gap: 5px;
}

.detail-page .episode-compact-card {
  min-height: 60px;
  border-radius: 9px;
}

.detail-page .more-title-info {
  margin-top: 18px;
  border-radius: 14px;
}

.detail-page .more-title-info > summary {
  min-height: 54px;
  padding: 9px 13px;
}

@media (max-width: 900px) {
  .detail-page .title-overview-experience.has-poster {
    grid-template-columns: 92px minmax(0,1fr);
  }
  .detail-page .title-overview-poster { width:92px; height:138px; }
  .detail-page .title-media-button {
    grid-column: 1 / -1;
    min-height: 52px;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
  }
}

@media (max-width: 700px) {
  .detail-page .title-overview-experience,
  .detail-page .title-overview-experience.has-poster {
    grid-template-columns: 76px minmax(0,1fr);
  }
  .detail-page .title-overview-poster { width:76px; height:114px; }
  .detail-page .title-overview-copy .media-overview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .detail-page .movie-progress-card { grid-template-columns:1fr; }
  .detail-page .movie-progress-actions { justify-content:flex-start; }
  .detail-page .series-episode-tracker { padding:11px; }
}

/* Media Tracker 4.0 — shared interaction and visual system. */
:root {
  --topbar-height: 68px;
  --control-height: 40px;
  --surface-quiet: rgba(14,23,39,.76);
  --surface-interactive: rgba(20,31,51,.86);
  --focus-ring: 0 0 0 3px rgba(128,103,255,.18);
}

body {
  background:
    radial-gradient(circle at 14% -8%, rgba(102,82,222,.105), transparent 31rem),
    radial-gradient(circle at 93% 12%, rgba(49,149,151,.055), transparent 30rem),
    linear-gradient(180deg,#080e1a 0%,#070c16 52%,#050a13 100%);
}

.topbar {
  border-bottom-color: rgba(153,172,212,.12);
  background: rgba(7,12,22,.88);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.topbar-inner { width: calc(100% - 38px); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { font-size: 8px; }
.library-alerts-button,
.topbar-add-title { height: 36px; border-radius: 10px; }
.library-alerts-button { width: 36px; min-width: 36px; }
.main-nav { gap: 3px; }
.main-nav button { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 12px; }
.main-nav button.active { box-shadow: inset 0 0 0 1px rgba(145,120,255,.08); }

.app-main {
  width: calc(100% - 38px);
  padding-top: 28px;
  padding-bottom: 74px;
}

.page { width: 100%; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 5px; font-size: clamp(29px,3.4vw,40px); }
.page-heading p { font-size: 12px; }
.eyebrow { margin-bottom: 7px; font-size: 9px; }

.button {
  min-height: var(--control-height);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease, color 130ms ease, opacity 130ms ease;
}
.button-primary { box-shadow: 0 7px 20px rgba(91,68,209,.18); }
.button-small { min-height: 32px; padding: 5px 9px; border-radius: 8px; font-size: 10px; }
.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

.input,
.select {
  min-height: var(--control-height);
  padding: 8px 11px;
  border-color: rgba(153,172,212,.2);
  border-radius: 10px;
  background: rgba(4,9,18,.62);
  font-size: 12px;
}
.input:focus,
.select:focus { box-shadow: var(--focus-ring); }

.panel,
.settings-card,
.library-toolbar,
.detail-hero,
.series-episode-tracker,
.more-title-info,
.unified-search-shell {
  border-color: rgba(153,172,212,.14);
  background-color: var(--surface-quiet);
  box-shadow: 0 14px 42px rgba(0,0,0,.14);
}

.status-pill,
.media-type-pill,
.filter-chip {
  min-height: 24px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.status-pill svg,
.button svg,
.back-button svg { flex: 0 0 auto; }

.progress-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(130,148,180,.12);
}
.progress-track > span { border-radius: inherit; }

.back-button {
  min-height: 30px;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
}
.back-button:hover { background: rgba(128,103,255,.08); }

.detail-page { max-width: 1720px; }
.detail-page .detail-hero { padding: 18px; border-radius: 17px; }
.detail-page .detail-title-row { align-items: center; gap: 9px; }
.detail-page .detail-title-row h1 { font-size: clamp(25px,2.8vw,34px); }
.detail-page .title-overview-experience { margin-top: 13px; }
.detail-page .series-episode-tracker { margin-top: 13px; border-radius: 15px; }
.detail-page .movie-progress-card { margin-top: 12px; }
.detail-page .more-title-info { margin-top: 13px; }
.detail-page .episode-season-row { border-color: rgba(153,172,212,.14); background: rgba(10,17,29,.7); }
.detail-page .episode-compact-card { transition: border-color 130ms ease, background 130ms ease, transform 130ms ease; }
.detail-page .episode-compact-card:hover { transform: translateY(-1px); }

.modal-backdrop { padding: 16px; background: rgba(1,4,10,.7); backdrop-filter: blur(16px); }
.modal { border-radius: 17px; background: #0f192b; }
.modal-header { padding: 17px 17px 0; }
.modal-header h2 { font-size: 20px; }
.modal-body { padding: 17px; }
.modal-actions { padding: 13px 17px 17px; }
.modal-close { width: 34px; height: 34px; min-height: 34px; }

.empty-state { border-radius: 15px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { font-size: 11px; }
.skeleton { background-size: 220% 100%; }

.toast-region { gap: 7px; }
.toast { border-radius: 11px; background: rgba(17,27,45,.96); backdrop-filter: blur(14px); }

[data-action],
[data-horizontal-scroll],
a,
button { touch-action: manipulation; }

@media (max-width: 900px) {
  .app-main { width: calc(100% - 24px); padding-top: 20px; }
  .topbar-inner { width: calc(100% - 24px); }
  .page-heading { gap: 14px; }
}

@media (max-width: 650px) {
  :root { --topbar-height: 60px; }
  .app-main { width: calc(100% - 20px); padding-top: 16px; padding-bottom: 88px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .page-heading h1 { font-size: 29px; }
  .detail-page .detail-hero { padding: 13px; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { width: 100%; max-height: calc(100vh - 16px); border-radius: 18px 18px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Home visual QA: groups organise content without creating empty full-width panels. */
.home-page .continue-group,
.home-page .continue-group-ready {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .continue-group + .continue-group {
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.home-page .continue-group-heading,
.home-page .continue-group-heading.upcoming {
  margin-bottom: 10px;
}

/* Medium desktop windows keep the full navigation without header collisions. */
@media (max-width: 1050px) and (min-width: 701px) {
  .topbar-inner {
    width: calc(100% - 28px);
  }

  .brand-copy {
    display: none;
  }

  .brand {
    flex: 0 0 38px;
  }

  .library-alerts-button {
    margin-left: 8px;
  }

  .topbar-add-title {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .topbar-add-title span {
    display: none;
  }

  .main-nav button {
    padding-inline: 10px;
    font-size: 12px;
  }
}

/* Stable artwork surfaces: failed TMDB images keep their original footprint. */
img[data-media-image] {
  display: block;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.12), rgba(45, 212, 191, 0.06));
  opacity: 0;
  transition: none;
}

img[data-media-image].is-loaded {
  opacity: 1;
}

.preview-compact-tracker {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.preview-compact-heading,
.preview-compact-season-header,
.preview-compact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-compact-heading h2 { margin: 0 0 3px; }
.preview-compact-heading p { margin: 0; color: var(--muted); }
.preview-compact-season-list { display: grid; gap: 8px; }

.preview-compact-season-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 16, 29, .72);
}

.preview-compact-season-header > div { display: grid; gap: 3px; }
.preview-compact-season-header small { color: var(--muted); }
.preview-compact-episodes { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-compact-episode { position: relative; cursor: pointer; }
.preview-compact-episode input { position: absolute; opacity: 0; pointer-events: none; }
.preview-compact-episode span,
.preview-season-all span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-soft);
  background: rgba(12, 21, 37, .86);
  font-weight: 750;
}
.preview-compact-episode input:checked + span,
.preview-season-all input:checked + span {
  border-color: rgba(45, 212, 191, .7);
  color: #071712;
  background: var(--success);
}
.preview-compact-episode.upcoming { opacity: .38; cursor: default; }
.preview-season-all { position: relative; cursor: pointer; }
.preview-season-all input { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .preview-compact-heading { align-items: flex-start; flex-direction: column; }
  .preview-compact-season-row { grid-template-columns: 1fr; }
}

.media-image-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  color: var(--accent, #9b87ff);
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(124, 92, 255, 0.1), rgba(45, 212, 191, 0.05));
}

.media-image-fallback svg {
  width: clamp(22px, 28%, 42px);
  height: clamp(22px, 28%, 42px);
  opacity: 0.82;
}

/* Shared and Discover details deliberately reuse the Library episode system. */
.external-add-form {
  display: contents;
}

.preview-detail-page .external-episode-tracker,
.preview-detail-page .external-movie-progress {
  margin-top: 18px;
}

.external-episode-card {
  cursor: pointer;
}

.external-episode-card > input,
.external-episode-tracker .episode-season-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.external-episode-card:not(.upcoming):hover {
  border-color: rgba(151, 120, 255, .52);
  background: rgba(151, 120, 255, .09);
  transform: translateY(-1px);
}

.external-episode-card.watched {
  border-color: rgba(66, 214, 164, .58);
  background: rgba(66, 214, 164, .14);
}

.external-episode-card.watched .episode-watch-toggle {
  color: var(--green);
}

.external-episode-tracker .episode-season-toggle {
  position: relative;
}

.external-movie-progress .planned-toggle {
  cursor: pointer;
}

.external-movie-progress .planned-toggle input {
  position: absolute;
  opacity: 0;
}

.continue-card-artwork,
.title-overview-poster,
.selection-poster,
.preview-season-card > img {
  background:
    radial-gradient(circle at 45% 35%, rgba(151, 120, 255, .18), transparent 58%),
    linear-gradient(145deg, rgba(16, 25, 44, .98), rgba(7, 13, 24, .98));
}

.connection-status {
  position: fixed;
  z-index: 1200;
  top: calc(var(--topbar-height) + 10px);
  left: 50%;
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: rgba(11, 18, 32, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  font-size: 12px;
  pointer-events: none;
}

.connection-status[hidden] {
  display: none;
}

.connection-status svg,
.connection-status .button-spinner {
  width: 15px;
  height: 15px;
  color: var(--success);
}

.is-reconnecting .connection-status {
  border-color: rgba(124, 92, 255, 0.42);
}

/* Final visual QA: keep the first Home heading clear of the sticky header. */
.home-page { margin-top: 0; }

/* The complete backup timestamp is useful information, not truncatable metadata. */
.settings-fact-grid > div:first-child dd {
  overflow: visible;
  font-size: .68rem;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

/* Preserve the native TMDB source quality on every compact artwork surface. */
.continue-focus-art img,
img[data-media-image] {
  image-rendering: auto;
}

/* Home artwork: show the complete TMDB image instead of cropping its edges. */
.continue-focus-art {
  display: grid;
  place-items: center;
  padding: 2px;
  background: rgba(5, 10, 20, .72);
}

.continue-focus-art img,
.continue-focus-art .media-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.continue-focus-art.is-placeholder {
  padding: 8px;
}

/* Library 4.0: a visual collection, not a spreadsheet-like list. */
.library-page {
  width: min(100%, 1760px);
}

.library-page .library-heading {
  margin-bottom: 14px;
}

.library-page .library-overview {
  max-width: 760px;
  margin-bottom: 14px;
  background: rgba(13, 21, 37, .68);
}

.library-page .library-overview-item {
  min-height: 58px;
  padding: 9px 13px;
}

.library-page .library-toolbar {
  position: static;
  grid-template-columns: minmax(320px, .62fr) minmax(0, 1.38fr);
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(11, 18, 32, .72);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.library-page .results-meta {
  min-height: 24px;
  margin-bottom: 8px;
}

.library-page .library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.library-page .library-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 12px;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid rgba(132, 148, 180, .18);
  border-radius: 16px;
  background: rgba(17, 27, 46, .82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.library-page .library-card::before {
  display: none;
}

.library-page .library-card:hover {
  border-color: rgba(139, 111, 255, .48);
  background: rgba(22, 34, 56, .96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
  transform: translateY(-2px);
}

.library-page .media-icon,
.library-page .media-icon.has-poster {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--primary-soft);
  background: linear-gradient(145deg, rgba(124, 92, 255, .12), rgba(45, 212, 191, .05));
}

.library-page .media-icon img,
.library-page .media-icon.has-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-page .media-icon > svg {
  width: 34px;
  height: 34px;
}

.library-page .library-title {
  display: block;
  padding: 11px 12px 8px;
}

.library-page .library-title strong {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-page .library-progress {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 0 12px 8px;
}

.library-page .library-progress-label {
  font-size: 9px;
}

.library-page .library-status {
  display: flex;
  min-height: 42px;
  padding: 0 12px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.library-page .library-airdate {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-page .library-chevron {
  display: none;
}

/* Settings 4.0: fewer controls, clear automatic behaviour and calmer surfaces. */
.settings-page.settings-hub {
  width: min(100%, 1180px);
}

.settings-page .settings-hero {
  margin-bottom: 16px;
  padding: 0 2px;
}

.settings-page .settings-health-strip {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 21, 37, .62);
}

.settings-page .settings-health-item {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.settings-page .settings-health-item:last-child {
  border-right: 0;
}

.settings-page .settings-command-grid {
  gap: 12px;
}

.settings-page .settings-command-card {
  gap: 13px;
  padding: 18px;
  border-color: rgba(132, 148, 180, .18);
  border-radius: 16px;
  background: rgba(16, 26, 44, .7);
  box-shadow: none;
}

.settings-page .settings-card-header {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
}

.settings-page .settings-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.settings-page .settings-fact-grid {
  gap: 6px;
}

.settings-page .settings-fact-grid > div {
  padding: 9px;
  border-color: rgba(132, 148, 180, .15);
  background: rgba(5, 11, 22, .3);
}

.settings-page .settings-sync-summary {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 11px;
}

.settings-auto-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  color: var(--muted);
  border: 1px solid rgba(132, 148, 180, .14);
  border-radius: 11px;
  background: rgba(5, 11, 22, .24);
  font-size: 10px;
  line-height: 1.5;
}

.settings-auto-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--accent-2);
}

.settings-page .settings-storage-bar {
  margin-top: 12px;
  border-color: rgba(132, 148, 180, .16);
  background: rgba(13, 21, 37, .62);
}

@media (max-width: 1180px) {
  .library-page .library-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .library-page .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .library-page .library-overview { max-width: none; }
  .settings-page .settings-health-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .settings-page .settings-health-item:last-child { border-bottom: 0; }
}

/* Library 5.0: use the same visual rhythm as Discover, with library actions. */
.library-page .library-list {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.library-page .library-card {
  height: 100%;
  padding-bottom: 9px;
  border-radius: 13px;
  background: rgba(21, 32, 53, .86);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.library-page .library-card:hover {
  border-color: rgba(139, 111, 255, .55);
  background: rgba(25, 38, 62, .96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.library-page .library-title {
  padding: 9px 9px 6px;
}

.library-page .library-title strong {
  min-height: 2.48em;
  font-size: .88rem;
  line-height: 1.24;
}

.library-page .library-title small {
  font-size: .7rem;
}

.library-page .library-progress {
  gap: 5px;
  padding: 0 9px 7px;
}

.library-page .library-progress-label {
  gap: 5px;
  font-size: 8px;
}

.library-page .library-progress .progress-track {
  height: 3px;
}

.library-page .library-status {
  display: grid;
  min-height: 42px;
  padding: 0 9px 7px;
  align-content: start;
  justify-items: start;
  gap: 4px;
}

.library-page .library-status .status-pill {
  min-height: 20px;
  padding: 0 7px;
  font-size: .57rem;
}

.library-page .library-airdate {
  font-size: 8px;
  white-space: normal;
}

.library-open-action {
  display: grid;
  min-height: 34px;
  margin: auto 9px 0;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #856cff, #7055e6);
  box-shadow: 0 8px 20px rgba(96, 72, 211, .2);
  font-size: 11px;
  font-weight: 850;
}

.library-page .library-card:hover .library-open-action {
  background: linear-gradient(145deg, #927cff, #795deb);
}

@media (max-width: 1500px) {
  .library-page .library-list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Continue 12.4 — three-column overview with neutral frames. */
.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  flex: 1 1 calc((100% - 28px) / 3);
  max-width: calc((100% - 28px) / 3);
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  height: 230px !important;
  min-height: 230px;
  border: 1px solid rgba(128, 143, 177, .48);
  border-radius: 16px;
  box-shadow: none;
}

.continue-card.has-card-artwork.ready-to-watch {
  border-color: rgba(128, 143, 177, .48);
  box-shadow: none;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  height: 228px;
  min-height: 228px;
  border-left: 1px solid rgba(128, 143, 177, .34);
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-artwork {
  border-left-color: rgba(128, 143, 177, .34);
}

.continue-card.has-card-artwork .continue-card-badges {
  display: none !important;
}

.continue-card.has-card-artwork .continue-card-top {
  padding: 12px 13px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  padding: 7px 13px 6px;
}

.continue-card.has-card-artwork .continue-focus {
  min-height: 62px;
  margin-top: 8px;
}

.continue-card.has-card-artwork .continue-card-progress {
  height: 5px;
  margin: 6px 13px 7px;
  background: rgba(119, 133, 166, .2);
}

.continue-card.has-card-artwork .continue-card-progress > span {
  background: var(--state-color, var(--primary));
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-progress > span {
  background: var(--green);
}

.continue-card.has-card-artwork .continue-card-footer {
  min-height: 39px;
  padding: 2px 13px 8px;
}

@media (max-width: 1500px) and (min-width: 901px) {
  .continue-grid > .continue-card.has-card-artwork,
  .continue-grid > .continue-grid-spacer {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 900px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex-basis: 100%;
    max-width: 100%;
  }
  .continue-grid-spacer { display: none; }
}



@media (max-width: 1250px) {
  .library-page .library-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .library-page .library-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .library-page .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home 6.0 — compact editorial heading and artwork that is actually readable. */
.home-page .home-heading {
  margin-bottom: 20px;
}

.home-page .home-heading h1 {
  margin: 2px 0 3px;
  font-size: clamp(30px, 3vw, 43px);
  letter-spacing: -.045em;
}

.home-page .home-heading > div > p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.continue-grid .continue-focus {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 7px;
}

.continue-focus-art {
  width: 76px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: #080e18;
}

.continue-focus-art img,
.continue-focus-art .media-image-fallback {
  border-radius: 7px;
  object-fit: contain;
}

.continue-grid .continue-focus-copy strong {
  font-size: 12px;
}

@media (max-width: 620px) {
  .home-page .home-heading { margin-bottom: 14px; }
  .continue-grid .continue-focus { grid-template-columns: 64px minmax(0, 1fr); }
  .continue-focus-art { width: 64px; height: 46px; }
  .continue-focus-meta { grid-column: 1 / -1; }
}

/* Library 6.0 — Discover-quality controls, separated by purpose. */
.library-page .library-heading {
  margin-bottom: 16px;
}

.library-page .library-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(440px, 1.45fr) minmax(260px, .7fr);
  align-items: end;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(132, 148, 180, .18);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 27, 47, .9), rgba(10, 17, 31, .82));
}

.library-search-block,
.library-filter-stack,
.library-select-controls,
.library-select-control,
.library-filter-line {
  min-width: 0;
}

.library-search-block,
.library-select-control {
  display: grid;
  gap: 7px;
}

.library-search-block .search-field {
  min-width: 0;
}

.library-search-block .search-field .input {
  min-height: 44px;
  padding-left: 42px;
  border-radius: 12px;
  background: rgba(5, 11, 22, .72);
}

.library-control-label {
  display: block;
  color: #aab5ca;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
}

.library-filter-stack {
  display: grid;
  gap: 8px;
}

.library-filter-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.library-filter-line .filter-group {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(132, 148, 180, .15);
  border-radius: 11px;
  background: rgba(5, 11, 22, .44);
  scrollbar-width: none;
}

.library-filter-line .filter-group::-webkit-scrollbar { display: none; }

.library-filter-line .filter-chip {
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}

.library-filter-line .filter-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.library-filter-line .filter-chip.active {
  color: #fff;
  background: linear-gradient(145deg, rgba(132, 102, 255, .8), rgba(101, 77, 211, .82));
  box-shadow: 0 5px 14px rgba(78, 57, 170, .22);
}

.library-select-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.library-select-shell {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.library-select-shell > svg:first-child {
  position: absolute;
  z-index: 1;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--primary-soft);
  pointer-events: none;
}

.library-select-shell > svg:last-child {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: rotate(90deg);
  pointer-events: none;
}

.library-select-shell .select {
  width: 100%;
  min-height: 44px;
  padding: 0 31px 0 34px;
  appearance: none;
  border-color: rgba(132, 148, 180, .24);
  border-radius: 12px;
  background: rgba(5, 11, 22, .72);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.library-select-shell .select:hover,
.library-select-shell .select:focus {
  border-color: rgba(139, 111, 255, .62);
}

@media (max-width: 1450px) {
  .library-page .library-toolbar {
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  }
  .library-select-controls { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 980px) {
  .library-page .library-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .library-select-controls { grid-column: auto; max-width: none; }
}

@media (max-width: 620px) {
  .library-filter-line { grid-template-columns: 1fr; gap: 6px; }
  .library-select-controls { grid-template-columns: 1fr; }
}

/* Continue 7.0 — full, larger artwork without cropping any source ratio. */
.continue-grid .continue-focus {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  min-height: 82px;
}

.continue-focus-art {
  width: 112px;
  height: 68px;
  overflow: hidden;
}

.continue-focus-art img,
.continue-focus-art .media-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

/* Library 7.0 — larger uncropped art and a single compact control dashboard. */
.library-page .library-list {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.library-page .media-icon,
.library-page .media-icon.has-poster {
  aspect-ratio: 2 / 3;
  background: #070c15;
}

.library-page .media-icon img,
.library-page .media-icon.has-poster img {
  object-fit: contain !important;
  object-position: center;
}

.library-page .library-status .status-pill {
  max-width: 100%;
  white-space: nowrap;
}

.library-page .library-status {
  min-height: 38px;
}

.library-search-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 92px;
  gap: 7px;
}

.library-year-field {
  position: relative;
  min-width: 0;
}

.library-year-field > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.library-year-field .input {
  width: 100%;
  min-height: 44px;
  padding: 0 8px 0 33px;
  border-radius: 12px;
  background: rgba(5, 11, 22, .72);
  appearance: textfield;
}

.library-year-field .input::-webkit-inner-spin-button,
.library-year-field .input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.library-page .library-toolbar {
  grid-template-columns: minmax(310px, .8fr) minmax(650px, 1.65fr) minmax(280px, .72fr);
  gap: 14px;
  padding: 13px 15px;
}

.library-filter-stack { gap: 5px; }
.library-filter-line { grid-template-columns: 96px minmax(0, 1fr); gap: 7px; }
.library-control-label { white-space: nowrap; }
.library-filter-line .filter-chip { min-height: 28px; padding: 4px 9px; }
.library-select-shell .select { min-height: 41px; }

@media (max-width: 1600px) {
  .library-page .library-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .library-page .library-toolbar { grid-template-columns: minmax(280px, .75fr) minmax(560px, 1.4fr); }
  .library-select-controls { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 1300px) {
  .library-page .library-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .library-page .library-toolbar { grid-template-columns: 1fr; }
  .library-page .library-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .library-select-controls { max-width: none; }
}

@media (max-width: 720px) {
  .continue-grid .continue-focus { grid-template-columns: 86px minmax(0, 1fr); }
  .continue-focus-art { width: 86px; height: 60px; }
  .library-page .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-search-fields { grid-template-columns: 1fr 88px; }
}

/* Continue 8.0 — let every TMDB image keep its own natural aspect ratio. */
.continue-grid .continue-focus {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.continue-focus-art {
  display: block;
  width: max-content;
  max-width: 150px;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.continue-focus-art img {
  display: block;
  width: auto !important;
  max-width: 150px;
  height: 74px !important;
  object-fit: fill !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: transparent;
}

.continue-focus-art.is-placeholder {
  display: grid;
  width: 74px;
  height: 74px;
  padding: 18px;
  place-items: center;
  border-radius: 8px;
  background: rgba(124, 92, 255, .08);
}

/* Library 8.0 — one centred, full-width dashboard surface. */
.library-page {
  width: calc(100% - 32px);
  max-width: none;
  margin-inline: auto;
}

.library-page .library-heading,
.library-page .library-overview,
.library-page .library-toolbar,
.library-page .results-meta,
.library-page .library-list,
.library-page #loadSentinel {
  width: 100%;
  max-width: none;
}

.library-page .library-overview {
  min-height: 72px;
  margin-bottom: 14px;
  border-color: rgba(132, 148, 180, .2);
  background: linear-gradient(135deg, rgba(18, 28, 48, .94), rgba(10, 17, 30, .88));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .13);
}

.library-page .library-overview-item {
  justify-content: center;
  min-height: 72px;
  padding: 11px 18px;
}

.library-page .library-overview-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(124, 92, 255, .2), rgba(82, 61, 190, .12));
}

.library-page .library-overview-item strong { font-size: 19px; }
.library-page .library-overview-item small {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.library-page .library-toolbar {
  justify-content: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
}

.library-page .library-control-label,
.library-page .filter-chip,
.library-page .select,
.library-page .input,
.library-page .library-card {
  font-family: inherit;
}

.library-page .library-filter-line {
  grid-template-columns: 100px minmax(0, 1fr);
}

.library-page .library-filter-line .filter-group {
  width: max-content;
  justify-self: start;
}

@media (max-width: 760px) {
  .library-page { width: calc(100% - 18px); }
  .library-page .library-overview-item { justify-content: flex-start; }
  .continue-focus-art img { max-width: 118px; height: 66px !important; }
}

/* Larger media pass — prioritize artwork legibility. */
.continue-focus-art {
  max-width: 190px;
}

.continue-focus-art img {
  max-width: 190px;
  height: 96px !important;
}

.continue-focus-art.is-placeholder {
  width: 96px;
  height: 96px;
}

.continue-grid .continue-focus {
  min-height: 108px;
}

.library-page .library-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

@media (max-width: 1600px) {
  .library-page .library-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1300px) {
  .library-page .library-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .library-page .library-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .continue-focus-art img { max-width: 145px; height: 82px !important; }
  .continue-focus-art.is-placeholder { width: 82px; height: 82px; }
  .continue-grid .continue-focus { min-height: 94px; }
  .library-page .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}

.library-page .library-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .library-page .library-overview { grid-template-columns: 1fr; }
  .library-page .library-overview-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .library-page .library-overview-item:last-child { border-bottom: 0; }
}

/* Continue 9.0 — artwork becomes the card instead of a separate thumbnail. */
.continue-card.has-card-artwork {
  isolation: isolate;
  border-color: color-mix(in srgb, var(--state-color, var(--primary)) 42%, var(--border));
  background: #0a1120;
  box-shadow: inset 0 2px 0 var(--state-color, var(--primary)), 0 14px 32px rgba(0, 0, 0, .18);
}

.continue-card.has-card-artwork::before {
  z-index: 0;
  inset: -12px;
  width: auto;
  height: auto;
  background-image: var(--continue-card-artwork);
  background-position: center;
  background-size: cover;
  filter: blur(1.75px) saturate(.96) contrast(1.04);
  opacity: .78;
  transform: scale(1.018);
}

.continue-card.has-card-artwork::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 23, .94) 0%, rgba(6, 12, 23, .76) 46%, rgba(6, 12, 23, .34) 100%),
    linear-gradient(0deg, rgba(6, 12, 23, .9) 0%, rgba(6, 12, 23, .14) 72%);
  content: "";
  pointer-events: none;
}

.continue-card.has-card-artwork > * {
  position: relative;
  z-index: 2;
}

.continue-card.has-card-artwork .continue-focus {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(7, 14, 26, .5);
  backdrop-filter: blur(4px);
}

.continue-card.has-card-artwork .continue-focus-art {
  display: none;
}

.continue-card.has-card-artwork .continue-title strong,
.continue-card.has-card-artwork .continue-focus-copy strong {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.continue-card.has-card-artwork .type-pill,
.continue-card.has-card-artwork .status-pill,
.continue-card.has-card-artwork .continue-release-line {
  backdrop-filter: blur(10px);
}

.continue-card.has-card-artwork:hover::before {
  opacity: .86;
  transform: scale(1.035);
  transition: opacity 180ms ease, transform 240ms ease;
}

/* Continue 9.1 — large, uncropped artwork without sacrificing card density. */
@media (max-width: 1500px) and (min-width: 901px) {
  .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.continue-card.has-card-artwork {
  min-height: 220px;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-artwork {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 43%;
  place-items: center;
  overflow: hidden;
  background: rgba(4, 9, 17, .28);
  pointer-events: none;
}

.continue-card.has-card-artwork .continue-card-artwork::before {
  position: absolute;
  inset: -12px;
  background-image:
    linear-gradient(90deg, rgba(6, 12, 23, .62), rgba(6, 12, 23, .08) 45%),
    var(--continue-card-artwork);
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(.9);
  opacity: .82;
  transform: scale(1.05);
  content: "";
  pointer-events: none;
}

.continue-card.has-card-artwork .continue-card-artwork::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 23, .58), transparent 32%);
  content: "";
  pointer-events: none;
}

.continue-card.has-card-artwork .continue-card-artwork img,
.continue-card.has-card-artwork .continue-card-artwork .media-image-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-footer,
.continue-card.has-card-artwork .continue-card-progress {
  width: 55%;
}

.continue-card.has-card-artwork .continue-card-top {
  width: 100%;
}

.continue-card.has-card-artwork .continue-card-badges {
  max-width: 43%;
}

.continue-card.has-card-artwork .type-pill,
.continue-card.has-card-artwork .status-pill,
.continue-card.has-card-artwork .continue-title strong,
.continue-card.has-card-artwork .continue-title span,
.continue-card.has-card-artwork .continue-focus-copy small,
.continue-card.has-card-artwork .continue-focus-copy strong,
.continue-card.has-card-artwork .continue-season-left,
.continue-card.has-card-artwork .continue-remaining,
.continue-card.has-card-artwork .continue-release-line,
.continue-card.has-card-artwork .continue-release-line strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.continue-card.has-card-artwork .type-pill,
.continue-card.has-card-artwork .status-pill {
  flex-wrap: nowrap;
}

.continue-card.has-card-artwork .continue-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  flex-wrap: nowrap;
}

.continue-card.has-card-artwork .continue-title strong {
  flex: 0 1 auto;
}

.continue-card.has-card-artwork .continue-title span {
  flex: 0 0 auto;
}

.continue-card.has-card-artwork .continue-focus {
  min-height: 70px;
}

.continue-card.has-card-artwork::before {
  opacity: .38;
  filter: blur(6px) saturate(.85);
}

.continue-card.has-card-artwork:hover::before {
  opacity: .48;
}

@media (max-width: 1050px) {
  .continue-card.has-card-artwork .continue-card-artwork { width: 38%; }
  .continue-card.has-card-artwork .continue-card-top,
  .continue-card.has-card-artwork .continue-card-main,
  .continue-card.has-card-artwork .continue-card-footer,
  .continue-card.has-card-artwork .continue-card-progress { width: 60%; }
  .continue-card.has-card-artwork .continue-card-top { width: 100%; }
}

/* Continue 9.2 — three cinematic cards per desktop row. */
@media (min-width: 901px) {
  .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) and (min-width: 621px) {
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Continue 10.0 — source-ratio artwork: complete image, zero letterboxing. */
.continue-card.has-card-artwork {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(240px * var(--continue-art-ratio, .66667));
  grid-template-rows: auto minmax(0, 1fr) 3px auto;
  width: 100%;
  height: 240px !important;
  min-height: 240px;
  padding: 0;
  background: var(--surface-solid);
}

.continue-card.has-card-artwork::after,
.continue-card.has-card-artwork .continue-card-artwork::before,
.continue-card.has-card-artwork .continue-card-artwork::after {
  display: none;
}

.continue-card.has-card-artwork::before {
  z-index: 4;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--state-color, var(--primary));
  filter: none;
  opacity: .9;
  transform: none;
}

.continue-card.has-card-artwork.ready-to-watch::before {
  height: 4px;
  background: var(--green);
  opacity: 1;
}

.continue-card.has-card-artwork:hover::before {
  opacity: 1;
  transform: none;
}

.continue-card.has-card-artwork .continue-card-artwork {
  position: relative;
  z-index: 1;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  width: 100%;
  height: 240px;
  border-left: 1px solid rgba(255,255,255,.1);
  background: #070d17;
}

.continue-card.has-card-artwork .continue-card-artwork img,
.continue-card.has-card-artwork .continue-card-artwork .media-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  background: transparent;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-progress,
.continue-card.has-card-artwork .continue-card-footer {
  grid-column: 1;
  width: auto;
  min-width: 0;
  margin-right: 0;
}

.continue-card.has-card-artwork .continue-card-top {
  grid-row: 1;
  padding: 13px 13px 0;
}

.continue-card.has-card-artwork .continue-card-badges {
  position: static;
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  margin-top: 6px;
}

.continue-card.has-card-artwork .continue-card-badges .status-pill {
  max-width: 100%;
}

.continue-card.has-card-artwork .continue-card-main {
  grid-row: 2;
  padding: 8px 13px 7px;
}

.continue-card.has-card-artwork .continue-focus {
  min-height: 62px;
  margin-top: 8px;
  background: rgba(5, 11, 20, .52);
  backdrop-filter: none;
}

.continue-card.has-card-artwork .continue-card-progress {
  grid-row: 3;
  width: auto;
  margin: 0 13px;
}

.continue-card.has-card-artwork .continue-card-footer {
  grid-row: 4;
  min-height: 42px;
  margin: 0;
  padding: 5px 13px 10px;
}

@media (min-width: 1501px) {
  .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1500px) and (min-width: 721px) {
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .continue-grid { grid-template-columns: 1fr; }
  .continue-card.has-card-artwork {
    grid-template-columns: minmax(0, 1fr) min(42%, calc(240px * var(--continue-art-ratio, .66667)));
  }
}

/* Continue 11.0 — adaptive artwork rows.
   Three cards always fill a desktop row, but their widths follow the source
   artwork. A two-line title makes every card in that row equally taller. */
.continue-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  flex: var(--continue-card-grow, 1) 1 25%;
  min-width: 0;
}

.continue-grid-spacer {
  visibility: hidden;
  pointer-events: none;
}

.continue-card.has-card-artwork {
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto !important;
  min-height: 240px;
}

.continue-card.has-card-artwork.has-two-line-title {
  min-height: 260px;
}

.continue-card.has-card-artwork .continue-card-artwork {
  width: auto;
  height: 100%;
  min-height: 240px;
  aspect-ratio: var(--continue-art-ratio, .66667);
}

.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  min-height: 260px;
}

.continue-card.has-card-artwork .continue-title strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1500px) and (min-width: 721px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex-basis: 40%;
  }
  .continue-grid-spacer { display: none; }
}

@media (max-width: 720px) {
  .continue-grid > .continue-card.has-card-artwork { flex-basis: 100%; }
  .continue-grid-spacer { display: none; }
}

/* Continue 11.1 — equal cards, calmer rows and more room for information. */
@media (min-width: 1501px) {
  .continue-grid > .continue-card.has-card-artwork,
  .continue-grid > .continue-grid-spacer {
    flex: 1 1 calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
  }
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  height: 250px !important;
  min-height: 250px;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  height: 250px;
  min-height: 250px;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-footer,
.continue-card.has-card-artwork .continue-card-progress {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.continue-card.has-card-artwork .continue-card-progress {
  align-self: end;
  height: 3px;
  margin-top: 0;
}

.continue-card.has-card-artwork .continue-card-footer {
  align-self: end;
  min-height: 36px;
}

.continue-card.has-card-artwork .continue-card-main {
  overflow: hidden;
}

/* Keep a generous information column while the artwork remains prominent. */
.continue-card.has-card-artwork {
  display: block;
  position: relative;
  padding: 0;
}

.continue-card.has-card-artwork .continue-card-artwork {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 auto;
  display: grid;
  width: 45%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  aspect-ratio: auto;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-footer,
.continue-card.has-card-artwork .continue-card-progress {
  width: 55%;
  max-width: 55%;
}

.continue-card.has-card-artwork .continue-card-top {
  padding-top: 13px;
}

.continue-card.has-card-artwork .continue-card-footer {
  padding-bottom: 8px;
}

/* Restore the image-filled backdrop so contain never leaves black bars. */
.continue-card.has-card-artwork .continue-card-artwork::before {
  display: block !important;
  position: absolute;
  z-index: 0;
  inset: -18px;
  background-image: var(--continue-card-artwork);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(.9) brightness(.72);
  opacity: .92;
  transform: scale(1.08);
  content: "";
}

.continue-card.has-card-artwork .continue-card-artwork::after {
  display: block !important;
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 23, .34), rgba(6, 12, 23, .06) 32%, rgba(6, 12, 23, .18));
  content: "";
}

.continue-card.has-card-artwork .continue-card-artwork img,
.continue-card.has-card-artwork .continue-card-artwork .media-image-fallback {
  z-index: 2;
  background: transparent;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-footer,
.continue-card.has-card-artwork .continue-card-progress {
  width: calc(55% - 14px);
  max-width: calc(55% - 14px);
}

@media (max-width: 1500px) and (min-width: 721px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex: 1 1 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

/* Continue 12.0 — canonical card layout. Keep this block last. */
.continue-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  grid-template-rows: auto minmax(0, 1fr) 3px auto;
  width: 100%;
  height: 250px !important;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  position: relative;
  z-index: 2;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  aspect-ratio: auto;
  border-left: 1px solid rgba(255,255,255,.08);
  background: #080e19;
}

.continue-card.has-card-artwork .continue-card-artwork::before {
  display: block !important;
  position: absolute;
  z-index: 0;
  inset: -20px;
  background: var(--continue-card-artwork) center / cover no-repeat;
  filter: blur(18px) saturate(.88) brightness(.66);
  opacity: .94;
  transform: scale(1.1);
  content: "";
}

.continue-card.has-card-artwork .continue-card-artwork::after {
  display: block !important;
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,13,24,.2), transparent 25%, rgba(7,13,24,.12));
  content: "";
}

.continue-card.has-card-artwork .continue-card-artwork img,
.continue-card.has-card-artwork .continue-card-artwork .media-image-fallback {
  position: relative;
  z-index: 2;
  inset: auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-progress,
.continue-card.has-card-artwork .continue-card-footer {
  position: relative;
  z-index: 4;
  grid-column: 1;
  width: auto;
  max-width: none;
  min-width: 0;
  margin-right: 0;
}

.continue-card.has-card-artwork .continue-card-top {
  grid-row: 1;
  padding: 13px 14px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  grid-row: 2;
  padding: 8px 14px 7px;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-progress {
  grid-row: 3;
  align-self: stretch;
  width: auto;
  height: 3px;
  margin: 0 14px;
}

.continue-card.has-card-artwork .continue-card-footer {
  grid-row: 4;
  align-self: stretch;
  min-height: 42px;
  margin: 0;
  padding: 5px 14px 9px;
}

.continue-card.has-card-artwork .continue-title strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1350px) and (min-width: 721px) {
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .continue-grid { grid-template-columns: minmax(0, 1fr); }
  .continue-grid-spacer { display: none; }
  .continue-card.has-card-artwork,
  .continue-card.has-card-artwork.has-two-line-title {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  }
}

/* Continue 12.1 — compact pre-enlargement layout with isolated content rows. */
.continue-grid {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  flex: 1 1 calc((100% - 24px) / 3);
  width: auto;
  max-width: calc((100% - 24px) / 3);
  min-width: 0;
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) 3px auto;
  width: 100%;
  height: 220px !important;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  position: relative;
  z-index: 2;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  display: block;
  width: auto;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  aspect-ratio: var(--continue-art-ratio, 16 / 9);
  border-left: 1px solid rgba(255,255,255,.08);
  background: #080e19;
}

.continue-card.has-card-artwork .continue-card-artwork::before,
.continue-card.has-card-artwork .continue-card-artwork::after {
  display: none !important;
}

.continue-card.has-card-artwork .continue-card-artwork img,
.continue-card.has-card-artwork .continue-card-artwork .media-image-fallback {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  background: #080e19;
}

.continue-card.has-card-artwork .continue-card-top,
.continue-card.has-card-artwork .continue-card-main,
.continue-card.has-card-artwork .continue-card-progress,
.continue-card.has-card-artwork .continue-card-footer {
  position: relative;
  z-index: 4;
  grid-column: 1;
  width: auto;
  max-width: none;
  min-width: 0;
  margin-right: 0;
  overflow: hidden;
}

.continue-card.has-card-artwork .continue-card-top {
  grid-row: 1;
  padding: 11px 13px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  grid-row: 2;
  padding: 7px 13px 6px;
}

.continue-card.has-card-artwork .continue-card-progress {
  grid-row: 3;
  align-self: stretch;
  width: auto;
  height: 3px;
  margin: 0 13px;
}

.continue-card.has-card-artwork .continue-card-footer {
  grid-row: 4;
  align-self: stretch;
  min-height: 39px;
  margin: 0;
  padding: 4px 13px 7px;
}

.continue-card.has-card-artwork .continue-card-main *,
.continue-card.has-card-artwork .continue-card-footer * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1500px) and (min-width: 721px) {
  .continue-grid > .continue-card.has-card-artwork,
  .continue-grid > .continue-grid-spacer {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 720px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex-basis: 100%;
    max-width: 100%;
  }
  .continue-grid-spacer { display: none; }
}

/* Continue 12.2 — balanced spacing and one equally thick outline. */
.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border: 2px solid var(--state-color, var(--primary));
  border-radius: 16px;
  box-shadow: none;
}

.continue-card.has-card-artwork.ready-to-watch {
  border-color: var(--green);
}

.continue-card.has-card-artwork::before {
  display: none !important;
  content: none !important;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  height: 216px;
  min-height: 216px;
  border-left: 2px solid var(--state-color, var(--primary));
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-artwork {
  border-left-color: var(--green);
}

.continue-card.has-card-artwork .continue-card-top {
  padding: 12px 13px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  padding: 8px 13px 7px;
}

.continue-card.has-card-artwork .continue-card-progress {
  grid-row: 3;
  height: 3px;
  margin: 4px 13px 6px;
  overflow: visible;
}

.continue-card.has-card-artwork .continue-card-footer {
  grid-row: 4;
  min-height: 38px;
  padding: 2px 13px 8px;
}

/* Continue 12.3 — spacious two-column cards with a calm frame. */
.continue-grid {
  gap: 14px;
}

.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  flex: 1 1 calc((100% - 14px) / 2);
  max-width: calc((100% - 14px) / 2);
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 260px !important;
  min-height: 260px;
  border: 1px solid rgba(111, 126, 164, .42);
  border-radius: 17px;
  box-shadow: inset 0 3px 0 var(--state-color, var(--primary));
}

.continue-card.has-card-artwork.ready-to-watch {
  border-color: rgba(55, 211, 164, .46);
  box-shadow: inset 0 3px 0 var(--green);
}

.continue-card.has-card-artwork::before {
  display: none !important;
  content: none !important;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  height: 258px;
  min-height: 258px;
  border-left: 1px solid rgba(111, 126, 164, .32);
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-artwork {
  border-left-color: rgba(55, 211, 164, .32);
}

.continue-card.has-card-artwork .continue-card-top {
  padding: 15px 16px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  padding: 10px 16px 8px;
}

.continue-card.has-card-artwork .continue-focus {
  min-height: 66px;
  margin-top: 10px;
}

.continue-card.has-card-artwork .continue-card-progress {
  grid-row: 3;
  height: 6px;
  margin: 8px 16px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 130, 163, .2);
}

.continue-card.has-card-artwork .continue-card-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--state-color, var(--primary));
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-progress > span {
  background: var(--green);
}

.continue-card.has-card-artwork .continue-card-footer {
  grid-row: 4;
  min-height: 44px;
  padding: 3px 16px 11px;
}

@media (max-width: 1500px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex-basis: 100%;
    max-width: 100%;
  }
  .continue-grid-spacer { display: none; }
}

/* Continue 12.4 final — compact three-column base with balanced height. */
.continue-grid > .continue-card.has-card-artwork,
.continue-grid > .continue-grid-spacer {
  flex: 1 1 calc((100% - 28px) / 3);
  max-width: calc((100% - 28px) / 3);
}

.continue-card.has-card-artwork,
.continue-card.has-card-artwork.has-two-line-title {
  height: 230px !important;
  min-height: 230px;
  border: 1px solid rgba(128, 143, 177, .48);
  border-radius: 16px;
  box-shadow: none;
}

.continue-card.has-card-artwork.ready-to-watch {
  border-color: rgba(128, 143, 177, .48);
  box-shadow: none;
}

.continue-card.has-card-artwork .continue-card-artwork,
.continue-card.has-card-artwork.has-two-line-title .continue-card-artwork {
  height: 228px;
  min-height: 228px;
  border-left: 1px solid rgba(128, 143, 177, .34);
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-artwork {
  border-left-color: rgba(128, 143, 177, .34);
}

.continue-card.has-card-artwork .continue-card-badges {
  display: none !important;
}

.continue-card.has-card-artwork .continue-card-top {
  padding: 12px 13px 0;
}

.continue-card.has-card-artwork .continue-card-main {
  padding: 7px 13px 6px;
}

.continue-card.has-card-artwork .continue-focus {
  min-height: 62px;
  margin-top: 8px;
}

.continue-card.has-card-artwork .continue-card-progress {
  height: 5px;
  margin: 6px 13px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(119, 133, 166, .2);
}

.continue-card.has-card-artwork .continue-card-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--state-color, var(--primary));
}

.continue-card.has-card-artwork.ready-to-watch .continue-card-progress > span {
  background: var(--green);
}

.continue-card.has-card-artwork .continue-card-footer {
  min-height: 39px;
  padding: 2px 13px 8px;
}

@media (max-width: 1500px) and (min-width: 901px) {
  .continue-grid > .continue-card.has-card-artwork,
  .continue-grid > .continue-grid-spacer {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 900px) {
  .continue-grid > .continue-card.has-card-artwork {
    flex-basis: 100%;
    max-width: 100%;
  }
  .continue-grid-spacer { display: none; }
}

/* Continue 12.5 final — flat, readable information without nested panels. */
.continue-card.has-card-artwork .continue-title {
  align-items: flex-start;
}

.continue-card.has-card-artwork .continue-title strong,
.continue-card.has-card-artwork .continue-title span,
.continue-card.has-card-artwork .continue-focus-copy small,
.continue-card.has-card-artwork .continue-focus-copy strong,
.continue-card.has-card-artwork .continue-season-left,
.continue-card.has-card-artwork .continue-remaining,
.continue-card.has-card-artwork .continue-release-line,
.continue-card.has-card-artwork .continue-release-line strong {
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.continue-card.has-card-artwork .continue-title strong {
  display: block;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.continue-card.has-card-artwork .continue-title span {
  padding-top: 2px;
  white-space: nowrap;
}

.continue-card.has-card-artwork .continue-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-height: 0;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(118, 133, 166, .28);
  border-radius: 10px;
  background: rgba(4, 10, 20, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.continue-card.has-card-artwork .continue-focus-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.continue-card.has-card-artwork .continue-focus-copy small {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.continue-card.has-card-artwork .continue-focus-copy strong {
  line-height: 1.25;
}

.continue-card.has-card-artwork .continue-focus-meta {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  justify-self: stretch;
  gap: 5px 12px;
  flex-wrap: wrap;
  margin-left: 0 !important;
  text-align: left;
}

.continue-card.has-card-artwork .continue-season-left,
.continue-card.has-card-artwork .continue-remaining {
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  line-height: 1.25 !important;
}

.continue-card.has-card-artwork.ready-to-watch .continue-focus-meta .continue-season-left,
.continue-card.has-card-artwork.ready-to-watch .continue-focus-meta .continue-remaining {
  background: transparent !important;
}

.continue-card.has-card-artwork .continue-release-line {
  min-width: 0;
  font-size: 7px !important;
  line-height: 1.25;
  white-space: nowrap;
}

.continue-card.has-card-artwork .continue-card-main {
  overflow: visible;
}
