:root {
  --bg: #0a0d12;
  --surface: #121720;
  --surface-2: #171e29;
  --surface-3: #202938;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f6f8fb;
  --muted: #95a0b2;
  --primary: #7c5cff;
  --primary-2: #a78bfa;
  --success: #35c98f;
  --warning: #ffb454;
  --danger: #ff667d;
  --info: #42b9ff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(124, 92, 255, 0.09),
      transparent 32rem
    ),
    radial-gradient(
      circle at 95% 10%,
      rgba(66, 185, 255, 0.06),
      transparent 28rem
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
.app-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.app-navbar {
  background: rgba(10, 13, 18, 0.91);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  min-height: 72px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.26);
}
.app-nav-links {
  gap: 4px;
  margin-left: 22px;
}
.app-nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb7c6;
  border-radius: 10px;
  padding: 9px 11px;
}
.app-nav-links .nav-link:hover,
.app-nav-links .nav-link.active {
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}
.dropdown-menu {
  background: #111722;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 8px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 9px 12px;
}
.btn {
  border-radius: 11px;
  font-weight: 650;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5f7cf6);
  border: 0;
}
.btn-primary:hover {
  filter: brightness(1.07);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #d8deea;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}
.page-hero {
  padding: 34px 0 22px;
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-2);
  font-weight: 800;
}
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.page-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.panel {
  background: linear-gradient(
    180deg,
    rgba(23, 30, 41, 0.96),
    rgba(17, 22, 31, 0.96)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}
.panel-body {
  padding: 22px;
}
.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-title {
  font-weight: 750;
  margin: 0;
  font-size: 1.06rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.stat-card .label {
  color: var(--muted);
  font-size: 0.83rem;
}
.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.04em;
}
.stat-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  color: #b9aaff;
  float: right;
}
.filter-container {
  background: linear-gradient(180deg, #171e29, #121720);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 10px auto 22px;
  max-width: 1540px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.filter-form .form-select,
.filter-form .form-control,
.form-control,
.form-select {
  background: #0f141d;
  color: #eef2f7;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  min-height: 44px;
}
.form-control:focus,
.form-select:focus {
  background: #111824;
  color: #fff;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.13);
}
.form-select option {
  background: #111722;
}
.form-label {
  color: #dce2ec;
  font-size: 0.86rem;
  font-weight: 650;
}
.form-text,
.text-muted {
  color: var(--muted) !important;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.result-count {
  color: var(--muted);
  font-size: 0.9rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}
.media-tile {
  position: relative;
  min-width: 0;
}
.media-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 16px;
  overflow: hidden;
  background: #151a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.media-poster:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}
.media-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(4, 7, 11, 0.82));
  pointer-events: none;
}
.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #5f6979;
  font-size: 2.3rem;
  background: linear-gradient(145deg, #1b2230, #10151d);
}
.media-badge {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.media-badge.format {
  top: 8px;
  left: 8px;
}
.media-badge.type {
  top: 8px;
  right: 8px;
}
.media-badge.box {
  bottom: 8px;
  left: 8px;
  background: rgba(66, 185, 255, 0.9);
  color: #06141c;
}
.media-badge.lent {
  bottom: 8px;
  right: 8px;
  background: rgba(255, 102, 125, 0.92);
}
.media-meta {
  padding: 10px 3px 0;
}
.media-title {
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.media-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.media-actions .btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.78rem;
}
.shelf-wrapper {
  background: none !important;
  border-radius: 0;
  padding: 0;
  margin: 0 auto 34px;
  max-width: 1540px;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}
.media-card {
  width: auto;
  height: auto;
  display: block;
  text-align: left;
}
.media-cover-wrapper {
  width: 100%;
  height: auto;
}
.media-cover-wrapper img,
.media-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.media-card:hover {
  transform: none;
}
.media-card .badge-format,
.media-card .badge-verliehen,
.box-badge {
  z-index: 3;
}
.media-card .badge-verliehen {
  top: 8px;
  right: 8px;
  bottom: auto;
}
.return-form {
  margin-top: 8px;
}
.btn-return {
  border-radius: 10px;
  width: auto;
  height: auto;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.detail-cover {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #151a22;
}
.detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.detail-content {
  min-width: 0;
}
.detail-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  color: #d8deea;
  font-size: 0.8rem;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.fact {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.fact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 750;
}
.fact-value {
  margin-top: 3px;
  font-weight: 650;
}
.description {
  line-height: 1.75;
  color: #cbd3df;
}
.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e7ebf2;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}
.table thead th {
  color: #9ca7b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 800;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.table td,
.table th {
  padding: 13px 14px;
  vertical-align: middle;
}
.table-responsive {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.loan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.loan-status.active {
  background: rgba(255, 180, 84, 0.15);
  color: #ffd09a;
}
.loan-status.returned {
  background: rgba(53, 201, 143, 0.14);
  color: #85e1bc;
}
.series-box {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 14px;
}
.series-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.series-box-title {
  font-weight: 780;
  margin: 0;
}
.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.disc-card {
  padding: 12px;
  border-radius: 12px;
  background: #0f141d;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.search-results {
  position: relative;
}
.tmdb-results {
  position: absolute;
  z-index: 100;
  width: 100%;
  max-height: 430px;
  overflow: auto;
  background: #111722;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.tmdb-result {
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tmdb-result:last-child {
  border-bottom: 0;
}
.tmdb-result:hover {
  background: rgba(124, 92, 255, 0.09);
}
.tmdb-result img {
  width: 50px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  background: #202938;
}
.tmdb-result-title {
  font-weight: 750;
}
.tmdb-result-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
}
.auth-brand-pane {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(124, 92, 255, 0.28),
      transparent 30rem
    ),
    linear-gradient(145deg, #101621, #080b10);
  border-right: 1px solid var(--border);
}
.auth-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  max-width: 760px;
}
.auth-copy p {
  color: #aab4c4;
  max-width: 620px;
  font-size: 1.08rem;
}
.auth-form-pane {
  display: grid;
  place-items: center;
  padding: 38px;
}
.auth-card {
  width: min(470px, 100%);
  background: linear-gradient(180deg, #171e29, #111720);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.empty-state {
  text-align: center;
  padding: 52px 24px;
  color: var(--muted);
}
.empty-state i {
  font-size: 2.3rem;
  color: #6f7a8c;
}
.empty-state h3 {
  color: #fff;
  margin: 12px 0 6px;
}
.app-alert {
  border-radius: 14px;
}
.app-footer {
  border-top: 1px solid var(--border);
  color: #7f8999;
  padding: 25px 0;
  margin-top: 54px;
  font-size: 0.84rem;
}
.modal-content {
  background: #171e29;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.modal-header,
.modal-footer {
  border-color: var(--border);
}
.btn-close {
  filter: invert(1);
}
@media (max-width: 991px) {
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-nav-links {
    margin-left: 0;
    margin-top: 12px;
  }
  .nav-actions {
    padding: 10px 0 4px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-hero {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand-pane {
    display: none;
  }
}
@media (max-width: 700px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .media-grid,
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    max-width: 310px;
    margin: 0 auto;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding-top: 24px;
  }
  .filter-container {
    border-radius: 14px;
  }
  .auth-form-pane {
    padding: 20px;
  }
  .auth-card {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .media-grid,
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Öffentliche Startseite */
.landing-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.landing-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 900;
  max-width: 900px;
  margin: 10px 0 22px;
}
.landing-copy > p {
  font-size: 1.12rem;
  color: #aab4c4;
  max-width: 720px;
  line-height: 1.7;
}
.landing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #aeb8c8;
  font-size: 0.9rem;
}
.landing-points i {
  color: var(--success);
  margin-right: 5px;
}
.landing-preview {
  perspective: 1200px;
}
.preview-window {
  background: linear-gradient(145deg, #171f2b, #0d1219);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.45);
  transform: rotateY(-5deg) rotateX(2deg);
}
.preview-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.preview-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3c4655;
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.preview-stats div {
  background: #111823;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
}
.preview-stats small {
  display: block;
  color: var(--muted);
}
.preview-stats strong {
  font-size: 1.4rem;
}
.preview-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-poster {
  aspect-ratio: 2/3;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.28), rgba(66, 185, 255, 0.08)),
    #151b25;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.preview-poster:nth-child(2n) {
  background:
    linear-gradient(
      145deg,
      rgba(255, 102, 125, 0.22),
      rgba(255, 180, 84, 0.08)
    ),
    #151b25;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 72px;
}
.feature-card {
  background: linear-gradient(180deg, #171e29, #111720);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}
.feature-card > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(124, 92, 255, 0.14);
  color: #b9aaff;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.feature-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
}
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 991px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 38px;
    padding-top: 48px;
  }
  .landing-preview {
    max-width: 650px;
  }
  .landing-features {
    grid-template-columns: 1fr;
  }
  .landing-copy h1 {
    font-size: clamp(2.7rem, 10vw, 4.5rem);
  }
}

/* Movie-Manager 2.1 */
html,
body {
  overflow-x: hidden;
}
.app-navbar {
  z-index: 1040;
}
.app-navbar .dropdown-menu {
  z-index: 1060;
}
.app-navbar .nav-link.dropdown-toggle {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
}
.app-navbar .nav-link.dropdown-toggle:hover,
.app-navbar .nav-link.dropdown-toggle.active {
  color: #fff;
}
.edit-media-panel {
  padding: 24px;
}
.edit-media-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}
.edit-cover-card {
  position: sticky;
  top: 96px;
}
.edit-cover-preview {
  aspect-ratio: 2/3;
  border-radius: 18px;
  overflow: hidden;
  background: #0e131a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.edit-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmdb-link-box {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(124, 92, 255, 0.1),
    rgba(66, 185, 255, 0.045)
  );
  border: 1px solid rgba(124, 92, 255, 0.22);
}
.input-group-text {
  background: #111720;
  color: var(--muted);
  border-color: var(--border);
}
.tmdb-result {
  color: #eef2f8;
  background: #111722;
}
.tmdb-result-noimage {
  width: 50px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #202938;
  color: #6f7a8c;
  flex: 0 0 auto;
}
.duplicate-list {
  display: grid;
  gap: 18px;
}
.duplicate-group {
  padding: 0;
  overflow: hidden;
}
.duplicate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.duplicate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
}
.duplicate-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111720;
}
.duplicate-card.is-keep {
  border-color: rgba(53, 201, 143, 0.38);
  background: linear-gradient(145deg, rgba(53, 201, 143, 0.08), #111720);
}
.duplicate-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: #171e29;
}
.duplicate-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duplicate-state {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
}
.duplicate-state.keep {
  background: rgba(53, 201, 143, 0.92);
  color: #06150f;
}
.duplicate-state.remove {
  background: rgba(255, 102, 125, 0.92);
  color: #21050a;
}
.duplicate-info {
  min-width: 0;
}
.duplicate-info > strong {
  display: block;
  margin: 2px 0 10px;
}
.duplicate-info dl {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
}
.duplicate-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}
.duplicate-info dt {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 650;
}
.duplicate-info dd {
  font-size: 0.74rem;
  margin: 0;
  text-align: right;
}
.missing-value {
  color: #ffb454;
}
.stat-icon.warning {
  color: #ffd09a;
  background: rgba(255, 180, 84, 0.12);
}
.stat-icon.danger {
  color: #ff8da0;
  background: rgba(255, 102, 125, 0.12);
}
.stat-icon.info {
  color: #8dd8ff;
  background: rgba(66, 185, 255, 0.12);
}
@media (max-width: 900px) {
  .edit-media-layout {
    grid-template-columns: 1fr;
  }
  .edit-cover-card {
    position: static;
    max-width: 280px;
  }
  .duplicate-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .duplicate-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Movie-Manager 2.4: konsolidierte UI ===== */
body {
  font-size: 16px;
}
.form-control,
.form-select,
textarea.form-control {
  background: #0d131c !important;
  color: #f7f9fc !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}
.form-control::placeholder,
textarea.form-control::placeholder {
  color: #6f7a8c !important;
  opacity: 1;
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background: #101823 !important;
  color: #fff !important;
  border-color: #7c5cff !important;
  box-shadow: 0 0 0 0.22rem rgba(124, 92, 255, 0.14) !important;
}
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #0d131c inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
.form-select {
  color-scheme: dark;
}
.input-group > .btn {
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-secondary-accent {
  background: rgba(66, 185, 255, 0.11);
  color: #bce8ff;
  border: 1px solid rgba(66, 185, 255, 0.25);
}
.btn-secondary-accent:hover {
  background: rgba(66, 185, 255, 0.18);
  color: #fff;
  border-color: rgba(66, 185, 255, 0.4);
}
.creation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.creation-card {
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #151c27, #10151d);
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #dfe5ee;
  transition: 0.18s ease;
}
.creation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(145deg, #182131, #111720);
  color: #fff;
}
.creation-card.active {
  border-color: rgba(124, 92, 255, 0.42);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.13), #111720);
}
.creation-card strong {
  display: block;
  font-size: 1rem;
}
.creation-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 3px;
  line-height: 1.45;
}
.creation-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.12);
  color: #c3b7ff;
  font-size: 1.15rem;
}
.box-cover-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #6f7a8c;
}
.box-cover-placeholder i {
  font-size: 2.4rem;
}
.box-picker {
  padding-top: 8px;
}
.box-filter-input {
  max-width: 360px;
}
.box-film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding: 4px 4px 4px 0;
}
.box-film-option {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0e141d;
  cursor: pointer;
  transition: 0.16s ease;
  color: #eef2f7;
}
.box-film-option:hover {
  border-color: rgba(124, 92, 255, 0.38);
  background: #111925;
}
.box-film-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.box-film-poster {
  width: 56px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: #181f2a;
  display: grid;
  place-items: center;
  color: #657184;
}
.box-film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.box-film-copy {
  min-width: 0;
}
.box-film-copy strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.box-film-copy small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.box-film-check {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: transparent;
  background: #101720;
}
.box-film-option:has(input:checked) {
  border-color: rgba(53, 201, 143, 0.52);
  background: linear-gradient(145deg, rgba(53, 201, 143, 0.08), #111925);
}
.box-film-option:has(input:checked) .box-film-check {
  background: var(--success);
  border-color: var(--success);
  color: #062015;
}
.box-film-option[hidden] {
  display: none !important;
}
.notice-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: rgba(66, 185, 255, 0.08);
  border: 1px solid rgba(66, 185, 255, 0.18);
}
.notice-box > i {
  font-size: 1.25rem;
  color: #7fd4ff;
}
.notice-box strong {
  display: block;
}
.notice-box span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}
.app-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: #131a24;
}
.app-message.success {
  border-color: rgba(53, 201, 143, 0.28);
  background: rgba(53, 201, 143, 0.08);
}
.app-message.warning {
  border-color: rgba(255, 180, 84, 0.28);
  background: rgba(255, 180, 84, 0.08);
}
.app-message.danger {
  border-color: rgba(255, 102, 125, 0.28);
  background: rgba(255, 102, 125, 0.08);
}
.app-message button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #8e98a8;
}
.info-banner {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(66, 185, 255, 0.08);
  border: 1px solid rgba(66, 185, 255, 0.18);
  color: #cdefff;
}
.info-banner strong {
  color: #fff;
}
.subtle-card {
  background: linear-gradient(145deg, #151c27, #111720);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.person-share {
  display: flex;
  align-items: center;
  gap: 14px;
}
.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  color: #c6bbff;
  font-size: 1.15rem;
}
.person-share .copy {
  min-width: 0;
  flex: 1;
}
.person-share .copy strong {
  display: block;
}
.person-share .copy small {
  color: var(--muted);
}
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.maintenance-card {
  display: block;
  text-decoration: none;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #161e2a, #10151d);
  transition: 0.18s ease;
}
.maintenance-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.36);
  color: #fff;
}
.maintenance-card i {
  font-size: 1.4rem;
  color: #b8abff;
}
.maintenance-card h2 {
  font-size: 1.05rem;
  margin: 12px 0 6px;
}
.maintenance-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}
.compact-empty {
  padding: 26px 20px !important;
}
.compact-empty h3 {
  font-size: 1.05rem;
}
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.pagination .page-link {
  background: #111720;
  color: #cfd6e2;
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}
code {
  color: #c5b8ff;
}
.table td {
  color: #dce2eb;
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 800px) {
  .creation-grid {
    grid-template-columns: 1fr;
  }
  .box-film-grid {
    grid-template-columns: 1fr;
  }
  .box-filter-input {
    max-width: none;
    width: 100%;
  }
}
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 11, 0.86);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loading-overlay.show {
  display: flex;
}
.loading-card {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #151c27;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.loading-card strong {
  display: block;
}
.loading-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ===== Movie-Manager 2.4.1: finale Konsolidierung ===== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main {
  flex: 1 0 auto;
}
.app-footer {
  margin-top: auto;
  flex: 0 0 auto;
}
.stat-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 112px;
}
.stat-card .icon,
.stat-card .stat-icon {
  grid-row: 1/3;
  grid-column: 1;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  color: #b9aaff;
  float: none;
  font-size: 1.1rem;
}
.stat-card .label,
.stat-card > div > span,
.stat-card > span:not(.icon):not(.stat-icon) {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}
.stat-card .value,
.stat-card > div > strong,
.stat-card > strong {
  grid-column: 2;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: block;
  margin-top: 4px;
}
.stat-card > div {
  min-width: 0;
}
.form-check-input {
  background-color: #0d131c;
  border-color: rgba(255, 255, 255, 0.2);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
input[type="file"].form-control {
  padding: 0.48rem 0.65rem;
}
input[type="file"].form-control::file-selector-button {
  background: #202938;
  color: #fff;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  margin: -0.48rem 0.7rem -0.48rem -0.65rem;
  padding: 0.58rem 0.8rem;
}
.dropdown-item {
  color: #dce2ec;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(124, 92, 255, 0.12);
  color: #fff;
}
.modal-content .form-control,
.modal-content .form-select {
  background: #0d131c !important;
  color: #fff !important;
}
.alert {
  background: #151c27;
  color: #e9edf4;
  border-color: var(--border);
}
.alert-info {
  background: rgba(66, 185, 255, 0.08);
  color: #cdefff;
  border-color: rgba(66, 185, 255, 0.2);
}
.alert-danger {
  background: rgba(255, 102, 125, 0.08);
  color: #ffc4ce;
  border-color: rgba(255, 102, 125, 0.22);
}
.box-film-grid:empty::after {
  content: "Keine auswählbaren Einzelfilme gefunden.";
  display: block;
  color: var(--muted);
  padding: 18px;
}
@media (max-width: 991px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-nav-links {
    margin-left: 0;
    padding-top: 12px;
  }
  .nav-actions {
    padding: 12px 0 8px;
  }
}
@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-hero {
    padding-top: 24px;
  }
  .edit-media-panel {
    padding: 16px;
  }
}

/* ================================================
   Sammelbox-Detailansicht: enthaltene Filme rechts
   ================================================ */

.detail-hero-box {
  align-items: start;
}

.detail-edition-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.detail-edition-panel > div {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
}

.detail-edition-panel span {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.86rem;
}

.detail-edition-panel strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.box-contents-inline {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.07), transparent 46%),
    rgba(18, 25, 36, 0.78);
}

.box-contents-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.box-contents-head h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.box-movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 16px;
}

.box-movie-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #101721;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.box-movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.box-movie-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.box-movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0f16;
}

.box-movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.box-movie-meta {
  display: grid;
  gap: 4px;
  padding: 12px 13px 14px;
}

.box-movie-meta strong {
  font-size: 0.96rem;
  line-height: 1.25;
  color: #f8fafc;
}

.box-movie-meta span {
  font-size: 0.82rem;
  color: #8995a8;
}

.box-empty-panel {
  margin: 0;
}

/* Auf sehr breiten Displays bleibt der rechte Bereich luftig. */
@media (min-width: 1400px) {
  .detail-hero-box .detail-content {
    max-width: none;
  }

  .box-movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }
}

/* Tablet / Mobil: dort darf der Bereich wieder untereinander laufen. */
@media (max-width: 900px) {
  .box-contents-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .box-contents-inline {
    padding: 16px;
  }

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