:root {
  --p300-bg: #f5f5f5;
  --p300-panel: #ffffff;
  --p300-ink: #373d45;
  --p300-muted: #8e96a0;
  --p300-dark: #373d45;
  --p300-mobile-dark: #212327;
  --p300-red: #e9380a;
  --p300-logo-red: #ff0701;
  --p300-blue: #0088e7;
  --p300-slogan: #b4e0ff;
  --p300-border: #d3dae5;
  --p300-soft-border: rgba(0, 0, 0, 0.15);
  --p300-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  --p300-radius: 0.25rem;
  --p300-font: Manrope, system-ui, "Segoe UI", Roboto, Helvetica, Ubuntu, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--p300-bg);
  color: var(--p300-ink);
  font-family: var(--p300-font);
  font-size: 16px;
  letter-spacing: 0.02rem;
  line-height: 1.35;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--p300-bg);
  color: var(--p300-ink);
}

body,
input,
button,
textarea,
select {
  font-family: var(--p300-font);
}

body.mobile-drawer-open,
body.search-open {
  overflow: hidden;
}

aside,
figure,
footer,
header,
main,
nav,
section {
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input {
  margin: 0;
  border: 0;
  color: inherit;
  font: inherit;
}

a {
  color: var(--p300-red);
  text-decoration: none;
}

a:hover {
  color: #b92c08;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0 0 1rem;
}

.clearfix::after {
  display: table;
  clear: both;
  content: "";
}

.sr-only,
.is-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.skip-to-main-content {
  position: absolute;
  top: -100px;
  left: 50%;
  z-index: 10000;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--p300-red);
  color: #fff;
  font-weight: 800;
  transform: translateX(-50%);
  transition: top 0.2s ease;
}

.skip-to-main-content:focus {
  top: 0.75rem;
}

.site-wrapper {
  min-height: 100vh;
  overflow-x: clip;
}

.wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0.375rem;
}

@media (min-width: 768px) {
  .wrapper {
    max-width: 1280px;
    padding: 0 0.625rem;
  }
}

@media (min-width: 1360px) {
  aside,
  header.site-header,
  main,
  nav.navigation {
    padding-right: 40px;
    padding-left: 40px;
  }

  .wrapper {
    max-width: 1920px;
    padding-right: 0;
    padding-left: 0;
  }
}

.container {
  clear: both;
  position: relative;
}

.container > .wrapper {
  padding-top: 0;
}

.site-header {
  position: relative;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  background: var(--p300-dark);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0.375rem 0.625rem;
}

.wrapper--header {
  padding: 0 0.625rem;
}

.burguer-menu {
  position: relative;
  z-index: 201;
  display: block;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

.burguer-menu span {
  position: relative;
  z-index: 202;
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 4px;
  border-radius: 3px;
  background: #fff;
  transform-origin: 2px 0;
}

.burguer-menu span:first-child {
  transform-origin: 0 0;
}

.burguer-menu span:last-child {
  margin-bottom: 0;
  transform-origin: 0 100%;
}

.mobile-drawer-open .burguer-menu span:first-child {
  transform: rotate(45deg) translate(4px, 2px);
}

.mobile-drawer-open .burguer-menu span:nth-child(2) {
  opacity: 0;
}

.mobile-drawer-open .burguer-menu span:last-child {
  transform: rotate(-45deg) translate(4px, -2px);
}

.site-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
}

.logotext {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.logotext:hover {
  color: #fff;
}

.site-header__logo .logotext__word {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.05rem;
  text-align: center;
}

.site-header__logo .logotext__word--accent {
  margin-left: 0.15rem;
  color: var(--p300-logo-red);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.9;
  text-shadow: 0 1px #000;
}

@media (min-width: 768px) {
  .site-header__logo {
    width: 10.5rem;
    min-width: 10.5rem;
  }

  .site-header__logo .logotext {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__logo .logotext__word {
    font-size: 18px;
    line-height: 1;
  }

  .site-header__logo .logotext__word--accent {
    margin-top: -0.05rem;
    margin-left: 0;
    font-size: 34px;
  }
}

.search {
  flex: 0 0 35%;
  margin-right: auto;
  padding: 0 0.5rem;
}

@media (min-width: 1140px) {
  .search {
    flex-basis: 30%;
  }
}

.search__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.9rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.6);
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.1);
}

.search__input {
  width: calc(100% - 1.875rem);
  height: 2.25rem;
  padding: 0 0 0 0.25rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 1.1rem;
  caret-color: var(--p300-red);
}

.search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  color: rgba(255, 255, 255, 0.8);
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.search-icon::after {
  position: absolute;
  right: -0.38rem;
  bottom: -0.28rem;
  width: 0.55rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav__buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--p300-blue);
  background: var(--p300-blue);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: #0075c8;
}

.btn-primary--light {
  border-color: #c3cddc;
  background: #fff;
  color: #434a54;
}

.btn-primary--light:hover {
  border-color: var(--p300-red);
  background: #fff3ef;
  color: var(--p300-red);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.btn-nav-home {
  border-color: #c3cddc;
  background: #fff;
  color: var(--p300-ink);
  font-weight: 900;
}

.navigation .btn-nav-home {
  border-color: #c3cddc;
  background: #fff;
  color: var(--p300-ink);
}

.btn-nav-home:hover {
  border-color: var(--p300-red);
  background: #fff3ef;
  color: var(--p300-red);
}

.navigation .btn-nav-home:hover {
  border-color: var(--p300-red);
  background: #fff3ef;
  color: var(--p300-red);
}

.nav__buttons__search {
  display: none;
  width: 2.25rem;
  padding: 0;
  color: #fff;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown__button {
  min-width: 3.25rem;
  font-weight: 800;
}

.menu-dropdown__list {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 12rem;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #434a54;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.language-switcher.is-open .menu-dropdown__list {
  display: block;
}

.menu-dropdown__item {
  display: block;
}

.menu-dropdown__item.is-current {
  background: #212529;
}

.menu-dropdown__link {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.menu-dropdown__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.navigation {
  position: relative;
  z-index: 150;
  background: var(--p300-bg);
}

.tabs {
  display: block;
  overflow: hidden;
  padding-top: 0.625rem;
  padding-bottom: 0.75rem;
}

.tabs::after {
  display: table;
  clear: both;
  content: "";
}

.tab__item {
  display: inline-block;
  float: left;
  margin-top: 0.3125rem;
  margin-right: 0.3125rem;
}

.tab__item--featured {
  font-weight: 800;
}

.tab__item--section {
  display: inline;
}

.tab__block {
  display: inline;
}

.tab__block-list {
  display: inline;
  overflow-y: hidden;
}

.tab__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  line-height: 1.7;
  padding: 0.1875rem 0.625rem;
}

.tab--selected .tab__link {
  font-weight: 800;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 899;
  display: none;
  background: rgba(0, 0, 0, 0.72);
}

.mobile-drawer-open .drawer-backdrop,
.search-open .drawer-backdrop {
  display: block;
}

.search-open .drawer-backdrop {
  z-index: 180;
}

.mobile-drawer-open .drawer-backdrop {
  z-index: 899;
}

.mobile-menu__drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(13rem, 42%) minmax(14rem, 58%);
  width: min(46rem, calc(100vw - 1.5rem));
  height: 100vh;
  overflow: hidden;
  background: #2a2f35;
  color: #fff;
  box-shadow: 22px 0 42px rgba(0, 0, 0, 0.36);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}

[dir="rtl"] .mobile-menu__drawer {
  right: 0;
  left: auto;
  transform: translateX(105%);
}

.mobile-drawer-open .mobile-menu__drawer {
  transform: translateX(0);
}

.mobile-menu__drawer--left,
.mobile-menu__drawer--right {
  height: 100%;
  overflow-y: auto;
  padding: 1.1rem;
}

.mobile-menu__drawer--left {
  background: #212327;
}

.mobile-menu__drawer--right {
  background: #343a42;
}

.mobile-drawer__title {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.mobile-drawer__title--small {
  margin-top: 1.35rem;
  color: var(--p300-slogan);
  font-size: 0.78rem;
}

.mobile-drawer__link {
  display: block;
  padding: 0.68rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.mobile-drawer__link:hover,
.mobile-drawer__link.is-current {
  color: var(--p300-logo-red);
}

.mobile-drawer__submenu--languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.mobile-drawer__submenu--languages .mobile-drawer__link {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-align: center;
}

main.container {
  min-height: 52vh;
}

main.container > .wrapper {
  padding-bottom: 1rem;
}

.aan {
  display: block;
  width: 100%;
  margin: 0.45rem 0 0.75rem;
  overflow: hidden;
  border-radius: var(--p300-radius);
  text-align: center;
}

.aan:empty {
  display: none;
}

.aan__header,
.aan__list,
.aan__footer {
  background: rgba(55, 61, 69, 0.05);
}

.video-gallery-page {
  width: 100%;
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.45rem 0 0.6rem;
}

.gallery-heading__title {
  margin: 0;
  color: var(--p300-ink);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.02rem;
}

.gallery-heading__meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--p300-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.gallery-heading__meta span {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--p300-shadow);
}

.trends-panel {
  margin: 0 0 0.75rem;
  padding: 0.65rem;
  border-radius: var(--p300-radius);
  background: #e8e8e8;
}

.trends-panel h2 {
  margin: 0 0 0.45rem;
  color: #67707b;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trends-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.grid {
  display: flex;
  flex-flow: row wrap;
  margin-right: -0.0935rem;
  margin-bottom: 0.085rem;
  margin-left: -0.0935rem;
  padding: 0;
  list-style-type: none;
}

.grid::after {
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
  content: "";
}

.grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: content-box;
  overflow: hidden;
  margin-right: 0.0935rem;
  margin-bottom: 0.5rem;
  margin-left: 0.0935rem;
  width: calc(50% - 0.187rem);
  max-width: calc(50% - 0.187rem);
  transform: translateZ(0);
}

.grid__item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.grid__item__img {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 0.125rem;
}

.grid__item__img img {
  display: block;
  width: 100%;
  height: 40.4vw;
  border-radius: 0.125rem;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.duration-video {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.125rem 0.5rem;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.grid__item__title {
  display: block;
  margin: 0.375rem 0 0.25rem;
  overflow: hidden;
  color: var(--p300-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
}

.grid__item__data {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0;
  padding: 0.125rem 0 0;
  overflow: hidden;
  color: var(--p300-muted);
  font-size: 0.75625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid__item__data li {
  margin: 0 0.75rem 0 0;
}

.grid__item__data--video {
  width: 100%;
  border-top: none;
}

.data__vote {
  color: var(--p300-muted);
}

.icon--thumb-data {
  position: relative;
  top: -0.0625rem;
  margin-right: 0.18rem;
  color: var(--p300-red);
  font-size: 0.72rem;
}

html:not(.touchevents) .grid__item--video-thumb .grid__item__img::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 4;
  width: 4rem;
  height: 4rem;
  margin: -2rem auto 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.62);
  opacity: 0;
  content: "";
  transform: scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

html:not(.touchevents) .grid__item--video-thumb .grid__item__img::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  border-top: 0.68rem solid transparent;
  border-bottom: 0.68rem solid transparent;
  border-left: 1rem solid #fff;
  opacity: 0;
  content: "";
  transform: translate(-38%, -50%);
  transition: opacity 0.2s ease;
}

html:not(.touchevents) .grid__item--video-thumb:hover .grid__item__img::before,
html:not(.touchevents) .grid__item--video-thumb:hover .grid__item__img::after {
  opacity: 1;
}

html:not(.touchevents) .grid__item--video-thumb:hover .grid__item__img::after {
  transform: scale(1);
}

.pagination-container,
.pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem 0 0;
}

.pagination-container:empty {
  display: none;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.pagination li {
  display: inline-flex;
}

.pagination a,
.pagination .current,
.pagination-ellipsis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #c3cddc;
  border-radius: 999px;
  background: #fff;
  color: #434a54;
  font-size: 0.86rem;
  font-weight: 800;
}

.pagination a:hover,
.pagination .current {
  border-color: var(--p300-red);
  background: var(--p300-red);
  color: #fff;
}

.pagination-ellipsis span {
  border-color: transparent;
  background: transparent;
}

.empty-state {
  margin: 0.75rem 0;
  padding: 1rem;
  border-radius: var(--p300-radius);
  background: #fff;
  color: #67707b;
  box-shadow: var(--p300-shadow);
}

.watch-page {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.5rem 0 0.7rem;
  color: var(--p300-muted);
  font-size: 0.78rem;
}

.breadcrumb b {
  overflow: hidden;
  max-width: 70vw;
  color: #67707b;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 0.9rem;
  align-items: start;
}

.watch-main,
.sidebar-box {
  overflow: hidden;
  border: 1px solid var(--p300-soft-border);
  border-radius: var(--p300-radius);
  background: #fff;
  box-shadow: var(--p300-shadow);
}

.watch-main {
  padding-bottom: 0.9rem;
}

.watch-title {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-bottom: 0.25rem solid var(--p300-blue);
  color: var(--p300-ink);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.25;
}

.watch-player {
  background: #111;
}

.watch-player__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.watch-player__frame > div,
.watch-player__frame .jwplayer {
  width: 100% !important;
  height: 100% !important;
}

.watch-data {
  margin: 0.8rem 0.85rem 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #edf0f4;
}

.watch-rating,
.video-tags,
.watch-outgoing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0.85rem 0;
}

.watch-rating .btn {
  font-weight: 800;
}

.watch-description {
  margin: 0.9rem 0.85rem 0;
  padding: 0.85rem;
  border-radius: var(--p300-radius);
  background: #f6f7f8;
  color: #505963;
  font-size: 0.95rem;
  line-height: 1.55;
}

.watch-description p:last-child {
  margin-bottom: 0;
}

.sidebar-box {
  padding-bottom: 0.55rem;
}

.sidebar-box__title {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-bottom: 0.25rem solid var(--p300-blue);
  font-size: 0.96rem;
  font-weight: 900;
}

.grid--sidebar {
  display: block;
  margin: 0;
  padding: 0.55rem;
}

.grid--sidebar .grid__item {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.55rem;
}

.grid--sidebar .grid__item__img img {
  height: 11rem;
}

.footer-description {
  margin: 1.2rem 0 0.75rem;
  padding: 0.9rem;
  border-radius: var(--p300-radius);
  background: #fff;
  color: #505963;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: var(--p300-shadow);
}

.footer-description .desc > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 0.75rem;
  padding: 1.35rem 0;
  background: var(--p300-dark);
  color: #fff;
}

.footer-nav {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.8fr) minmax(16rem, 1.5fr) minmax(10rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.nav-footer__title {
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.nav-footer__item {
  color: #a5aeba;
  font-size: 0.84rem;
  line-height: 1.7;
}

.logotext--footer {
  justify-content: flex-start;
  font-size: 1.05rem;
  line-height: 1;
}

.logotext--footer .logotext__word--accent {
  margin-left: 0.2rem;
  color: var(--p300-logo-red);
  font-size: 1.6rem;
  letter-spacing: -0.08em;
}

.footer-link {
  color: #d7dde5;
}

.footer-link:hover {
  color: #fff;
}

.footer-trends,
.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-trends a,
.footer-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7dde5;
  font-size: 0.78rem;
}

.footer-trends a:hover,
.footer-languages a:hover,
.footer-languages a.is-current {
  background: var(--p300-red);
  color: #fff;
}

.footer-counter {
  margin-top: 1rem;
  color: #a5aeba;
}

.sticky-header {
  position: fixed;
  top: -5rem;
  right: 0;
  left: 0;
  z-index: 9999;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  background: #fff;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
}

.sticky-header--dark {
  background: #202429;
}

.sticky-header .wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logotext--sticky {
  display: inline-block;
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.logotext--sticky--accent {
  display: block;
  color: var(--p300-logo-red);
  font-size: 1.25rem;
  letter-spacing: -0.08em;
}

.search--sticky {
  display: block;
  flex: 1 1 auto;
  margin: 0;
}

.sticky-header__go-up {
  flex: 0 0 auto;
  width: 2.2rem;
  padding: 0;
  color: #fff;
}

.directory-page {
  margin: 0.6rem 0 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.section-head span {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--p300-muted);
  box-shadow: var(--p300-shadow);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.directory-card,
.model-tile {
  display: flex;
  min-height: 4.25rem;
  overflow: hidden;
  border: 1px solid var(--p300-soft-border);
  border-radius: var(--p300-radius);
  background: #fff;
  color: var(--p300-ink);
  box-shadow: var(--p300-shadow);
}

.directory-card:hover,
.model-tile:hover {
  color: var(--p300-red);
}

.directory-card__letter {
  display: flex;
  flex: 0 0 3.5rem;
  align-items: center;
  justify-content: center;
  background: var(--p300-blue);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.directory-card--tag .directory-card__letter {
  background: var(--p300-red);
}

.directory-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.7rem;
}

.directory-card__title,
.model-tile__title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-card__meta {
  color: var(--p300-muted);
  font-size: 0.78rem;
}

.directory-grid--models {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.model-tile {
  flex-direction: column;
  min-height: 0;
}

.model-tile__media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8e8e8;
}

.model-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-tile__placeholder {
  color: var(--p300-blue);
  font-size: 2rem;
  font-weight: 900;
}

.model-tile__title {
  padding: 0.55rem 0.65rem;
}

.load-more-row {
  margin-top: 0.8rem;
}

.error-hero {
  display: flex;
  min-height: 52vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.error-hero__panel {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  width: min(58rem, 100%);
  overflow: hidden;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.error-hero__code {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p300-dark);
  color: var(--p300-logo-red);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.12em;
}

.error-hero__content {
  padding: 2rem;
}

.error-hero__eyebrow {
  color: var(--p300-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.error-hero h1 {
  margin: 0 0 0.65rem;
  font-size: 2rem;
}

.error-hero__text {
  color: #67707b;
}

.error-hero__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  margin-top: 1rem;
}

.error-hero__search input {
  min-height: 2.4rem;
  padding: 0 0.8rem;
  border: 1px solid var(--p300-border);
  border-radius: 999px;
  background: #f7f8f9;
}

.error-hero__search button,
.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--p300-red);
  color: #fff;
  font-weight: 900;
}

.error-hero__search button:hover,
.error-button:hover {
  color: #fff;
  background: #ba2d08;
}

.error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.error-button:not(.error-button--primary) {
  background: var(--p300-blue);
}

@media (min-width: 544px) {
  .grid__item {
    width: calc(50% - 0.187rem);
    max-width: calc(50% - 0.187rem);
  }

  .grid__item__img img {
    height: 27.4vw;
  }
}

@media (min-width: 768px) {
  .grid__item {
    width: calc(33.333% - 0.187rem - 0.125rem);
    max-width: calc(33.333% - 0.187rem - 0.125rem);
    border: 0.0625rem solid var(--p300-soft-border);
    border-bottom-width: 0.2rem;
    border-radius: var(--p300-radius);
    background: #fff;
    box-shadow: var(--p300-shadow);
  }

  .grid__item__img {
    width: 100%;
    border-radius: 0.125rem 0.125rem 0 0;
    border-bottom: 0.25rem solid var(--p300-blue);
  }

  .grid__item__img img {
    height: 20.35vw;
    border-radius: 0.125rem 0.125rem 0 0;
  }

  .grid__item__title {
    height: 1.18rem;
    margin: 0.6rem 0.375rem 0.25rem;
    font-size: 0.855rem;
    line-height: 1.15;
  }

  .grid__item__data {
    margin: 0 0.375rem 0.375rem;
    padding-left: 0.125rem;
  }
}

@media (min-width: 992px) {
  .grid__item {
    width: calc(25% - 0.187rem - 0.125rem);
    max-width: calc(25% - 0.187rem - 0.125rem);
  }

  .grid__item__img img {
    height: 16.25vw;
  }

  .grid__item__title {
    font-size: 0.84rem;
  }

  .grid__item__data {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1440px) {
  .grid.four-col-lg .grid__item {
    width: calc(20% - 0.187rem - 0.125rem);
    max-width: calc(20% - 0.187rem - 0.125rem);
  }

  .grid__item__img img {
    height: 12.25rem;
    max-height: 203px;
  }
}

@media (max-width: 991px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-sidebar {
    width: 100%;
  }

  .grid--sidebar {
    display: flex;
    margin-right: -0.0935rem;
    margin-left: -0.0935rem;
  }

  .grid--sidebar .grid__item {
    width: calc(50% - 0.187rem);
    max-width: calc(50% - 0.187rem);
    margin-right: 0.0935rem;
    margin-left: 0.0935rem;
  }

  .grid--sidebar .grid__item__img img {
    height: 27vw;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-grid,
  .directory-grid--models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-header {
    background: var(--p300-mobile-dark);
    box-shadow: none;
  }

  .site-header .wrapper {
    height: 45px;
    padding: 0.35rem 0.625rem;
  }

  .site-header__logo {
    margin-right: auto;
  }

  .site-header__logo .logotext {
    flex-direction: row;
  }

  .site-header__logo .logotext__word {
    font-size: 20px;
  }

  .site-header__logo .logotext__word--accent {
    margin-top: 0;
    margin-left: 0.12rem;
    font-size: 24px;
  }

  .site-header .search {
    position: absolute;
    top: 44px;
    right: 0;
    left: 0;
    z-index: 220;
    display: none;
    width: 100%;
    height: 4.375rem;
    margin: 0;
    padding: 1rem;
    background: var(--p300-mobile-dark);
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2);
  }

  .search-open .site-header .search {
    display: block;
  }

  .site-header .search__box {
    height: 2.25rem;
    border-color: #fff;
    border-radius: 0.125rem;
    background: #fff;
  }

  .site-header .search__input {
    color: #434a54;
    font-size: 1rem;
  }

  .site-header .search__input::placeholder {
    color: rgba(0, 0, 0, 0.7);
  }

  .site-header .search-submit {
    color: #808994;
  }

  .nav__buttons__search {
    display: inline-flex;
  }

  .nav__buttons .language-switcher {
    display: none;
  }

  .navigation {
    background: #202429;
  }

  .tabs {
    display: flex;
    flex-flow: row nowrap;
    gap: 0.3rem;
    overflow-x: auto;
    padding: 0.45rem 0;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab__item,
  .tab__block,
  .tab__block-list {
    display: contents;
    float: none;
    margin: 0;
  }

  .tab__item--section {
    display: none;
  }

  .tab__link {
    display: inline-flex;
    min-width: max-content;
    min-height: 2rem;
    color: #fff;
  }

  .tab__item--featured .tab__link {
    margin-left: 0.625rem;
  }

  .tab__block-list .tab__item:last-child .tab__link {
    margin-right: 0.625rem;
  }

  .mobile-menu__drawer {
    grid-template-columns: 1fr;
    width: min(24rem, calc(100vw - 2rem));
    overflow-y: auto;
  }

  .mobile-menu__drawer--left,
  .mobile-menu__drawer--right {
    height: auto;
    overflow: visible;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.7rem;
  }

  .gallery-heading__title {
    font-size: 1.08rem;
  }

  .grid.one-col-xs {
    margin-right: -0.375rem;
    margin-left: -0.375rem;
  }

  .grid.one-col-xs .grid__item {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    margin-left: 0;
  }

  .grid.one-col-xs .grid__item__img img {
    height: 54.35vw;
    object-fit: cover;
  }

  .grid__item__title {
    width: calc(100% - 20px);
    margin-right: 9px;
    margin-left: 9px;
    padding-left: 0;
  }

  .grid__item__data {
    width: calc(100% - 20px);
    margin-right: 9px;
    margin-left: 9px;
    font-size: 0.75rem;
  }

  .watch-title {
    font-size: 1.05rem;
  }

  .grid--sidebar {
    display: block;
    margin: 0;
  }

  .grid--sidebar .grid__item {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .grid--sidebar .grid__item__img img {
    height: 54.35vw;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .directory-grid,
  .directory-grid--models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-hero__panel {
    grid-template-columns: 1fr;
  }

  .error-hero__code {
    min-height: 8rem;
  }
}

@media (max-width: 543px) {
  .duration-video {
    padding: 0.125rem 0.625rem;
  }

  .directory-grid,
  .directory-grid--models {
    grid-template-columns: 1fr;
  }

  .error-hero__search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 384px) {
  .site-header__logo .logotext__word {
    font-size: 18px;
  }

  .site-header__logo .logotext__word--accent {
    font-size: 22px;
  }
}

[dir="rtl"] .burguer-menu {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .site-header__logo {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .tab__item {
  float: right;
  margin-right: 0;
  margin-left: 0.3125rem;
}

[dir="rtl"] .duration-video {
  right: 0;
  left: auto;
}

[dir="rtl"] .grid__item__title,
[dir="rtl"] .grid__item__data,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .watch-title {
  text-align: right;
}
