.desktop-search-overlay {
  display: none;
}

@media (min-width: 768px) {
  .desktop-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 890;
    display: block;
    color: #d0d0d0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 0s linear 160ms;
  }

  .desktop-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .desktop-search-overlay__panel {
    position: absolute;
    top: calc(var(--desktop-search-top, 72px) + 10px);
    right: max(24px, calc((100vw - 1300px) / 2));
    box-sizing: border-box;
    width: min(686px, calc(100vw - 48px));
    max-height: calc(100vh - var(--desktop-search-top, 72px) - 26px);
    padding: 24px 16px 20px;
    overflow-y: auto;
    border-radius: 8px;
    color: #d0d0d0;
    background: #050505;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
    pointer-events: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #353535 transparent;
  }

  .desktop-search-overlay__panel::-webkit-scrollbar {
    width: 6px;
  }

  .desktop-search-overlay__panel::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #353535;
  }

  .desktop-search-overlay__section {
    margin: 0;
  }

  .desktop-search-overlay__section--spaced,
  .desktop-search-overlay__section--daily {
    margin-top: 32px;
  }

  .desktop-search-overlay__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    margin: 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #505050;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .desktop-search-overlay button {
    border: 0;
    font-family: inherit;
    letter-spacing: 0;
  }

  .desktop-search-overlay__clear {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 0;
    color: #858585;
    background: transparent;
    font-size: 12px;
    line-height: 24px;
  }

  .desktop-search-overlay__clear:disabled {
    cursor: default;
    opacity: 0.45;
  }

  .desktop-search-overlay__clear i {
    font-size: 14px;
    line-height: 1;
  }

  .desktop-search-overlay__clear:not(:disabled):focus-visible,
  .desktop-search-overlay__clear:not(:disabled):hover {
    color: #d0d0d0;
  }

  .desktop-search-overlay__tag-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 81px));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
  }

  .desktop-search-overlay__tag-list li {
    display: flex;
    min-width: 0;
    height: 28px;
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #1b1b1b;
    list-style: none;
  }

  .desktop-search-overlay__tag-list button {
    min-width: 0;
    height: 28px;
    padding: 0 7px;
    overflow: hidden;
    color: #8c8c8c;
    background: transparent;
    font-size: 12px;
    line-height: 28px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-search-overlay__tag-list button:focus-visible,
  .desktop-search-overlay__tag-list button:hover {
    color: #d8d8d8;
    background: #252525;
  }

  .desktop-search-overlay__recent-query {
    flex: 1 1 auto;
    text-align: right;
  }

  .desktop-search-overlay__remove {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    padding: 0 5px !important;
    text-align: center;
  }

  .desktop-search-overlay__remove::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 1px;
    background: #686868;
    content: "";
  }

  .desktop-search-overlay__remove i {
    font-size: 12px;
    line-height: 1;
  }

  .desktop-search-overlay__tag-list--hot button {
    width: 100%;
    text-align: center;
  }

  .desktop-search-overlay__empty {
    grid-column: 1 / -1;
    width: auto !important;
    height: 28px !important;
    align-items: center;
    color: #666;
    background: transparent !important;
    font-size: 12px;
  }

  .desktop-search-overlay__daily-list {
    margin: 4px 0 0;
    padding: 0;
  }

  .desktop-search-overlay__daily-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 37px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .desktop-search-overlay__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    overflow: hidden;
  }

  .desktop-search-overlay__rank img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .desktop-search-overlay__rank--number {
    border-radius: 50%;
    color: #a8a8a8;
    background: #2b2b2b;
    font-size: 11px;
    line-height: 20px;
  }

  .desktop-search-overlay__daily-list a {
    min-width: 0;
    overflow: hidden;
    color: #cecece;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-search-overlay__daily-list a:focus-visible,
  .desktop-search-overlay__daily-list a:hover {
    color: #fff;
    text-decoration: none;
  }

  .desktop-search-overlay__daily-empty {
    display: flex !important;
    color: #666;
    font-size: 12px;
  }

  .desktop-search-overlay__section--official {
    margin-top: 20px;
  }

  .desktop-search-overlay__official-description,
  .desktop-search-overlay__official-link {
    margin: 0;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .desktop-search-overlay__official-link {
    display: block;
    margin-top: 2px;
    color: #d6d6d6;
    text-decoration: none;
  }

  .desktop-search-overlay__official-link:focus-visible,
  .desktop-search-overlay__official-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  @media (max-width: 899px) {
    .desktop-search-overlay__panel {
      right: 16px;
      width: min(686px, calc(100vw - 32px));
    }
  }
}
