.wiki-search-block {
  position: fixed;
  right: 6px;
  bottom: 6px;
  z-index: 10000;
  width: 280px;
  max-height: calc(100vh - 12px);
  margin: 0;
  padding: 16px 14px;
  border: 1px solid #31374a;
  border-radius: 7px;
  background: rgba(18, 24, 42, 0.72);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.48);
  box-sizing: border-box;
  overflow-y: auto;
}

.wiki-search-block .wiki-sidebar-title {
  margin-bottom: 9px;
}

.wiki-search-block .wiki-sidebar-title a {
  color: #c4cfda;
  text-decoration: none;
}

.wiki-search-description {
  margin-bottom: 10px;
  color: #8f99b0;
  font: 12px/1.4 Arial, sans-serif;
}

.wiki-search-language-label {
  display: block;
  margin-bottom: 4px;
  color: #8f99b0;
  font: 11px/1.2 Arial, sans-serif;
}

.wiki-search-language {
  width: 100%;
  height: 29px;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 1px solid #41659e;
  border-radius: 2px;
  outline: none;
  background: #17233f;
  color: #d8deeb;
  font: 12px Arial, sans-serif;
  box-sizing: border-box;
}

.wiki-search-language:focus {
  border-color: #00c9ff;
  box-shadow: 0 0 5px rgba(0, 201, 255, 0.35);
}

.wiki-search-language option {
  background: #17233f;
  color: #d8deeb;
}

.wiki-search-control {
  display: flex;
  width: 100%;
}

.wiki-search-input {
  min-width: 0;
  width: 100%;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #414b68;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: rgba(5, 10, 23, 0.9);
  color: #d7deef;
  font: 12px Arial, sans-serif;
  box-sizing: border-box;
}

.wiki-search-input:focus {
  border-color: #00c9ff;
  box-shadow: 0 0 6px rgba(0, 201, 255, 0.28);
}

.wiki-search-control button {
  height: 31px;
  padding: 0 9px;
  border: 1px solid #414b68;
  border-radius: 0 4px 4px 0;
  background: rgba(71, 82, 196, 0.55);
  color: #fff;
  cursor: pointer;
  font: 11px Arial, sans-serif;
}

.wiki-search-control button:hover,
.wiki-search-control button:focus {
  background: rgba(71, 82, 196, 0.9);
}

.wiki-search-status {
  min-height: 15px;
  padding-top: 7px;
  color: #7f8ba4;
  font: 10px/1.4 Arial, sans-serif;
}

.wiki-search-results {
  display: none;
  margin-top: 4px;
  border-top: 1px solid #31374a;
}

.wiki-search-results.is-visible {
  display: block;
}

.wiki-search-result {
  display: block;
  padding: 9px 3px;
  border-bottom: 1px solid #31374a;
  text-decoration: none;
}

.wiki-search-result:hover {
  background: rgba(71, 82, 196, 0.16);
  text-decoration: none;
}

.wiki-search-result-title {
  display: block;
  color: #ccd5eb;
  font: 12px/1.35 "Times New Roman", Times, serif;
}

.wiki-search-result-snippet {
  display: block;
  padding-top: 3px;
  color: #78849c;
  font: 10px/1.35 Arial, sans-serif;
}

.wiki-browse-all {
  display: block;
  margin-top: 10px;
  color: #00c9ff;
  font: 11px Arial, sans-serif;
  text-align: right;
}

.wiki-popular-block .themes {
  min-height: 26px;
  margin: 0 0 8px 0;
  padding: 0 0 12px 0;
}

.wiki-popular-block .themes .themes-title {
  height: 15px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#events .event-wiki-link {
  display: block;
  min-height: 15px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#events .event-name {
  transition: color 0.2s ease;
}

#events .event-wiki-hint {
  position: absolute;
  top: 15px;
  right: 0;
  float: none;
  width: 50%;
  text-align: right;
  color: #00c9ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#events div.has-wiki-guide:hover .event-name {
  color: #00c9ff;
}

#events div.has-wiki-guide:hover .event-countdown {
  opacity: 0;
}

#events div.has-wiki-guide:hover .event-wiki-hint {
  opacity: 1;
}
