.mc-hci-filter {
  width: min(1240px, calc(100% - 32px));
  margin: 38px auto 0;
  color: #f8f9fa;
}

.mc-filter-mobile-bar {
  display: none;
}

.mc-filter-mobile-button,
.mc-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.mc-filter-mobile-button {
  background: #4ea8de;
  color: #ffffff;
}

.mc-filter-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mc-reset-btn {
  width: 46px;
  min-width: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8f9fa;
}

.mc-reset-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mc-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 78;
}

.mc-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(28, 47, 70, 0.96), rgba(14, 26, 40, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.mc-filter-sheet-head {
  display: none;
}

.mc-filter-sheet-head h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #ffffff;
}

.mc-filter-close {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mc-filter-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.mc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mc-filter-group label {
  font-size: 0.8rem;
  color: #d8e2eb;
}

.mc-filter-group select,
.mc-filter-group input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(78, 168, 222, 0.16);
  border-radius: 16px;
  background: #061524;
  color: #ffffff;
}

.mc-filter-group input::placeholder {
  color: #92a4b5;
}

.mc-filter-group select:focus,
.mc-filter-group input:focus {
  outline: none;
  border-color: rgba(78, 168, 222, 0.58);
  box-shadow: 0 0 0 3px rgba(78, 168, 222, 0.14);
}

.mc-filter-search-group {
  min-width: 0;
}

.mc-filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#mc-movie-results {
  display: flex;
  margin-top: 30px;
}

.mc-filter-section {
  width: 100%;
  margin-top: 32px;
}

.mc-filter-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.38rem;
}

.mc-film-loading {
  padding: 20px 0;
  text-align: center;
  font-size: 1rem;
  color: #d5e3ed;
}

@media (max-width: 1140px) {
  .mc-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-filter-search-group {
    grid-column: span 3;
  }

  .mc-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.mc-filter-sheet-open {
    overflow: hidden;
  }

  .mc-hci-filter {
    width: min(100% - 22px, 1240px);
    margin-top: 24px;
  }

  .mc-filter-mobile-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
  }

  .mc-filter-mobile-button {
    width: min(220px, 100%);
  }

  .mc-filter-panel {
    max-height: calc(100dvh - 28px);
    overflow: hidden;
  }

  .mc-filter-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mc-filter-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 50%;
    z-index: 79;
    gap: 10px;
    padding: 16px 14px 14px;
    border-radius: 24px;
    transform: translateY(calc(100vh + 24px));
    transition: transform 0.28s ease;
  }

  .mc-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mc-filter-panel.is-open {
    transform: translateY(-50%);
  }

  .mc-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mc-filter-sheet-head h2 {
    font-size: 1.2rem;
  }

  .mc-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mc-filter-search-group {
    grid-column: auto;
  }

  .mc-filter-group label {
    font-size: 0.76rem;
  }

  .mc-filter-group select,
  .mc-filter-group input {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .mc-filter-actions {
    justify-content: center;
  }

  .mc-reset-btn {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  #mc-movie-results {
    margin-top: 22px;
  }
}

.mc-filter-close {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.mc-filter-close:hover,
.mc-filter-close:focus-visible {
  background: transparent;
}
