/* Beshnaw branding and browsing refinements, shared by both themes. */
body .sidebar .logo_wrapper {
  margin: 22px 20px 30px;
  text-align: center;
}
body .sidebar .logo_wrapper img {
  width: auto;
  height: 104px;
  max-height: 104px;
  max-width: 100%;
  object-fit: contain;
}
.header .logo_wrapper img {
  max-width: 100%;
  opacity: 1;
}
body.mobile .header .logo_wrapper {
  height: 44px;
}
body.mobile .header .logo_wrapper img {
  max-height: 44px;
  width: auto;
}

/* Keep navigation readable with a keyboard, as well as a mouse. */
body a:focus-visible,
body button:focus-visible,
body input:focus-visible {
  outline: 2px solid rgb(var(--theme_color));
  outline-offset: 4px;
}
body .sidebar .menu_parent a {
  border-radius: 8px;
}
body .widget .widget_content .slider_wrapper .item {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(var(--font_color), 0.055);
  transition: background 180ms ease, box-shadow 180ms ease;
}
body .widget .widget_content .slider_wrapper .item:hover,
body .widget .widget_content .slider_wrapper .item:focus-within {
  box-shadow: inset 0 0 0 1px rgba(var(--theme_color), 0.55);
}
body .widget .widget_content > .sub_title {
  color: rgba(var(--font_color), 0.68);
  line-height: 1.6;
}
body .widget.type_slider .widget_content > .title {
  padding-inline-end: 104px;
  line-height: 1.25;
}
body .widget.type_slider .widget_content .arrows,
body .widget.type_slider.has_sub_data .widget_content .arrows {
  top: 0;
}
body .widget.type_slider .widget_content .arrows .arrow {
  width: 40px;
  height: 40px;
  line-height: 37px;
  color: rgba(var(--font_color), 0.8);
}

/* Label the existing search link without interfering with inline search inputs. */
@media (min-width: 1051px) {
  body:not(.mobile) .header .i.search_wrapper:not(:has(input)) {
    width: 176px;
    opacity: 1;
    border-radius: 24px;
    background: rgba(var(--font_color), 0.06);
  }
  body:not(.mobile) .header .i.search_wrapper:not(:has(input)) .icon {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 10px);
    opacity: 1;
    background: transparent;
    border-radius: 0;
  }
  body:not(.mobile) .header .i.search_wrapper:not(:has(input)) .icon::after {
    content: "Search music";
    font: 500 13px var(--font-family);
    white-space: nowrap;
  }
  body.dir_rtl:not(.mobile) .header .i.search_wrapper:not(:has(input)) .icon::after {
    content: "جستجوی موسیقی";
  }
}

/* Give the desktop client's compact header separate space for the brand. */
@media (max-width: 1050px) {
  body:not(.mobile).no_sidebar .header {
    display: grid;
    grid-template-columns: 72px 52px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
  }
  body:not(.mobile).no_sidebar .header > .counterAlign {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
  }
  body:not(.mobile).no_sidebar .header > .logo_wrapper {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    inset: auto;
    display: block;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  body:not(.mobile).no_sidebar .header > .align {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }
  body:not(.mobile).no_sidebar .header .i {
    margin-right: 4px;
    height: auto;
  }
  body:not(.mobile).no_sidebar .header .i .btn {
    padding: 7px 10px;
  }
  body .widget.type_slider .widget_content > .title {
    font-size: clamp(22px, 4vw, 30px);
  }
}
@media (max-width: 500px) {
  body .widget.type_slider .widget_content > .title {
    padding-inline-end: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .widget .widget_content .slider_wrapper .item {
    transition: none;
  }
}

@media (max-width: 1050px) {
  body .widget.type_slider .widget_content > .title { margin-bottom: 14px; }
  body .widget.type_slider .widget_content > .sub_title { margin-top: 0; }
}
