@font-face {
  font-family: "geogrotesque";
  src: url("../fonts/Geogrotesque-Regular.woff2") format("woff2"), url("../fonts/Geogrotesque-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap
}

:root {
  --default-logo-height: 18px;
  --oksh-primary-rgb: 0, 0, 190;
  --oksh-secondary-rgb: 50, 220, 220;
  --oksh-danger-rgb: 109, 11, 112;
  --oksh-warning-rgb: 248, 175, 0;

  --default-theme-color: rgb(var(--oksh-primary-rgb)) !important;
  --default-brand-color: rgb(var(--oksh-primary-rgb)) !important;
  --success-color: rgb(var(--oksh-secondary-rgb)) !important;
  --warning-color: rgb(var(--oksh-warning-rgb)) !important;
  --danger-color: rgb(var(--oksh-danger-rgb)) !important;

  --input-disabled-bg-color: hsla(0, 0%, 0%, 0.05);
  --dotted-outline: 1px dotted var(--dotted-outline-color);
  --header-height: 56px;
  --sidebar-width: 240px;
  --item-title-font-size: 14px;
  --item-title-max-lines: 2;
  --item-title-line-height: 18px;
  --horizontal-item-title-line-height: 21px;
  --playlist-item-title-line-height: 20px;
  --large-item-title-font-size: 16px;
  --large-item-title-line-height: 22px;
  --links-color: var(--default-theme-color);

}

html,
body {
  font-family: "geogrotesque", sans-serif !important;
  background: #fff
}

h6,
.h6,
h5,
.h5,
h4,
.h4,
h3,
.h3,
h2,
.h2,
h1,
.h1 {
  font-family: "geogrotesque", sans-serif !important;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px
}

h6 a,
.h6 a,
h5 a,
.h5 a,
h4 a,
.h4 a,
h3 a,
.h3 a,
h2 a,
.h2 a,
h1 a,
.h1 a {
  letter-spacing: 0
}

body {
  --header-height: 100px;
}

/*
  Custom homepage visual overhaul (CSS-only) to get closer to the provided reference style.
  Scope is intentionally focused on anonymous home/listing layout.
*/
body.visible-sidebar {
  --default-item-margin-right-width: 0;
  --default-item-margin-bottom-width: 0;
  background: #f3f4f6;
  color: #121212;
}

.page-main {
  max-width: 1440px;
  margin: 24px auto 48px;
  padding: 0 24px;
}

.page-main .media-list-row {
  margin-bottom: 28px;
}

.page-main .media-list-header {
  margin-bottom: 12px;
  align-items: baseline;
}

.page-main .media-list-header h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #121212;
}

.page-main .media-list-header h3 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0 !important;
  text-decoration: none;
  background: rgb(var(--oksh-secondary-rgb));
  color: #00171f !important;
  transform: translateY(-4px);
}

.page-main .media-list-header h3 a::after {
  content: "+";
  font-weight: 800;
}

.page-main .items-list-outer {
  overflow: visible;
}

.page-main .items-list-outer.list-slider .items-list-wrap,
.page-main .items-list-outer .items-list-wrap {
  overflow: visible;
}

.page-main .media-list-wrapper .items-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: calc(5 * (200px + 14px) - 14px); 
  gap: 14px;
}

.page-main .item {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.page-main .item-content {
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ebef;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}

.page-main .item-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(7, 16, 34, 0.12);
}

.page-main .item-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center !important;
}

.page-main .item-main {
  padding: 8px 10px 10px;
}

.page-main .item-main h3 {
  margin: 0;
}

.page-main .item-main h3 a span,
.page-main .item-main h3 a {
  display: block;
  font-weight: 700;
  color: #131722;
}

.page-main .item-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  color: #707887;
}

.page-main .item-author a span,
.page-main .item-views,
.page-main .item-date {
  color: inherit;
}

.page-main .item-date {
  flex-basis: 100%;
}

.page-main .item-duration {
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
}

.page-main .next-slide {
  display: none !important;
}

.page-main .load-more {
  margin-top: 18px;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #121826;
  color: #fff;
  border: 0;
}

@media (max-width: 1400px) {
  .page-main .items-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .page-main .items-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 760px) {
  .page-main .items-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-main .media-list-header h2 {
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .page-main .items-list {
    grid-template-columns: 1fr;
  }
}

.item-views+.item-date:before {
  content: "🕒";
  margin: 0 5px 0 -3px;
  filter: contrast(1.25) brightness(1.25);
}

.item-meta {
  justify-content: space-between;
}

.logo span>img {
  width: 150px;
  max-height: 100vh;
  margin-left: 3rem;
}

#app-header .toggle-sidebar {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0 14px;
  padding: 0;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
}

#app-header .toggle-sidebar .circle-icon-button {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgb(var(--oksh-primary-rgb));
  color: #fff;
  box-shadow: none;
  position: relative;
}

#app-header .toggle-sidebar .circle-icon-button .material-icons {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

#app-header .toggle-sidebar .circle-icon-button svg {
  width: 28px;
  height: 28px;
}

#app-header .toggle-sidebar .circle-icon-button svg path {
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}

#app-header .toggle-sidebar .circle-icon-button>span,
#app-header .toggle-sidebar .circle-icon-button>span>span {
  background: transparent;
}

body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button .material-icons,
body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button svg {
  opacity: 0;
}

body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button::before,
body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2.6px;
  border-radius: 2px;
  background: #fff;
  transform-origin: center;
}

body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.visible-sidebar #app-header .toggle-sidebar .circle-icon-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.comments-list {
  display: none;
}

.sidebar-theme-switcher-inner .theme-icon.active i,
.nav-menu li.link-item.active .menu-item-icon {
  color: rgb(var(--oksh-primary-rgb));
}

/* ------------ dark theme -------------------------  */



body.dark_theme .button-link.sign-in,
body.dark_theme .button-link.register-link,

body.dark_theme .media-content-field-content a,

body.dark_theme .sidebar-theme-switcher-inner .theme-icon.active i,
body.dark_theme .nav-menu li.link-item.active .menu-item-icon {
  color: rgb(var(--oksh-secondary-rgb));
}

body.dark_theme .media-content-field-label h4 {
  color: #e0e0e0 !important;
}

body.dark_theme {
  background: #121212 !important;
  color: #e0e0e0 !important;
}

body.dark_theme .page-main .item-content {
  background: #1e1e1e;
  border-color: #333;
}

body.dark_theme .item-content h3 span {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark_theme h1,
body.dark_theme h2,
body.dark_theme h3,
body.dark_theme h4,
body.dark_theme h5,
body.dark_theme h6 {
  color: #e0e0e0 !important;
}


@media (min-width: 390px) {
  .items-list-hor .item-content {
    padding-left: 0;
    padding-top: 130px;
  }
}

/* hide view counts (media cards, media page, playlist page) */
.item-views,
.media-views,
.playlist-views {
  display: none !important;
}

/* drop the "•" separator that only exists because views precede the date */
.item-meta > .item-views + .item-date::before {
  content: none;
}

/* wide horizontal lists put a "•" before the date regardless of views; keep it */
@media (min-width: 600px) {
  .items-list-hor .item-meta > .item-views + .item-date::before {
    content: "•";
  }
}
