.movie-view {
  max-width: 500px;
  margin: 0 auto;
}

.movie-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.movie-view-heading {
  font-size: 20px;
  font-weight: 600;
  color: #c5c5c5;
}

.sort-wrapper {
  position: relative;
  z-index: 20;
}

.sort-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #b0b0b0;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.sort-btn:hover {
  background: #333333;
}

.sort-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  overflow: hidden;
  z-index: 10;
}

.sort-menu.open {
  display: block;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  font-family: inherit;
}

.sort-option:hover {
  background: #333333;
}

.sort-option.active {
  color: #6a9a9a;
}

.movie-card {
  display: flex;
  background: #333;
  border: 1px solid #353535;
  border-radius: 8px;
  margin-bottom: 16px;
}

.movie-card-info {
  flex: 1;
  padding: 12px 16px;
  min-width: 0;
}

.movie-card-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  position: sticky;
  top: 48px;
  background: #444;
  z-index: 10;
  margin: -12px -16px 8px;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
}

.movie-card-title {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-title a {
  color: #d0d0d0;
  text-decoration: none;
}

.movie-card-title a:hover {
  color: #6a9a9a;
}

.movie-card-year {
  color: #707070;
  font-size: 13px;
  flex-shrink: 0;
}

.movie-card-screenings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-screenings {
  text-align: center;
  padding: 40px;
}

@media (max-width: 800px) {
  .movie-card-info {
    padding: 10px 12px;
  }

  .movie-card-header {
    margin: -10px -12px 6px;
    padding: 10px 12px;
  }
}
