/* Vidood Frontend Rewrite */
:root {
  --vf-bg: #090a0c;
  --vf-bg-2: #0f1115;
  --vf-panel: #151820;
  --vf-panel-2: #1b1f29;
  --vf-border: rgba(255, 255, 255, 0.1);
  --vf-text: #f7f7f4;
  --vf-muted: #a2a8b3;
  --vf-dim: #6f7785;
  --vf-green: #1fd6ad;
  --vf-yellow: #f2bd4b;
  --vf-red: #ff4d57;
  --vf-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html {
  background: var(--vf-bg);
}

body.body {
  min-height: 100%;
  background: var(--vf-bg);
  color: var(--vf-text);
  font-family: Arial, Helvetica, sans-serif;
}

body.body:before {
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(8px);
}

a {
  color: inherit;
}

a:hover {
  color: var(--vf-green);
}

.header {
  background: rgba(9, 10, 12, 0.86);
  border-bottom: 1px solid var(--vf-border);
  backdrop-filter: blur(18px);
}

.header__content {
  height: 74px;
  gap: 18px;
}

.header__logo {
  width: auto;
  min-width: 0;
  color: var(--vf-text);
}

.header__brand-text {
  max-width: 220px;
  font-size: 20px;
  font-weight: 900;
}

.header__nav {
  background: #0f1115;
  border-color: var(--vf-border);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5);
}

.header__nav-link {
  color: var(--vf-muted);
  font-size: 13px;
  font-weight: 800;
}

.header__nav-link:hover {
  color: var(--vf-text);
}

.header__nav-link--accent {
  color: var(--vf-yellow);
}

.header__auth {
  margin-left: auto;
}

.header__search-input {
  height: 42px;
  border: 1px solid var(--vf-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--vf-text);
}

.header__search-input:focus {
  border-color: rgba(31, 214, 173, 0.75);
}

.header__search-btn,
.header__search-button,
.header__search-close {
  color: var(--vf-text);
}

.header__btn span {
  background: var(--vf-text);
}

.vf-shell {
  padding-top: 74px;
}

.vf-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(31, 214, 173, 0.3);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(31, 214, 173, 0.13), rgba(31, 214, 173, 0.03));
  color: var(--vf-text);
  font-size: 14px;
  line-height: 1.4;
}

.vf-notice__icon {
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--vf-green);
}

.vf-notice__icon:before {
  content: "";
  position: absolute;
  top: 12px;
  left: 15px;
  width: 12px;
  height: 17px;
  background: #07110f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.vf-notice__label {
  display: block;
  margin-bottom: 2px;
  color: var(--vf-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vf-notice__link {
  display: inline-block;
  margin-right: 8px;
  color: var(--vf-text);
  font-size: 16px;
  font-weight: 900;
}

.vf-notice__link:hover {
  color: var(--vf-green);
}

.vf-notice__copy {
  color: var(--vf-muted);
}

.vf-hero {
  display: grid;
  gap: 18px;
  min-height: 260px;
  align-items: end;
  padding: 24px;
  border: 1px solid var(--vf-border);
  border-radius: 18px;
  background: var(--vf-panel);
  box-shadow: var(--vf-shadow);
  overflow: hidden;
}

.icon.ion-ios-arrow-back:before,
.icon.ion-ios-arrow-round-back:before {
  content: "" !important;
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon.ion-ios-arrow-forward:before,
.icon.ion-ios-arrow-round-forward:before {
  content: "" !important;
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon.ion-ios-arrow-round-up:before {
  content: "" !important;
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon.ion-ios-search:before {
  content: "" !important;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon.ion-ios-search:after {
  content: "" !important;
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.icon.ion-md-close:before,
.icon.ion-md-close:after {
  content: "" !important;
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.icon.ion-md-close:before {
  transform: rotate(45deg);
}

.icon.ion-md-close:after {
  transform: rotate(-45deg);
}

.icon.ion-ios-bookmark:before {
  content: "" !important;
  display: block;
  width: 10px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.icon.ion-ios-arrow-back,
.icon.ion-ios-arrow-forward,
.icon.ion-ios-arrow-round-back,
.icon.ion-ios-arrow-round-forward,
.icon.ion-ios-arrow-round-up,
.icon.ion-ios-search,
.icon.ion-md-close,
.icon.ion-ios-bookmark {
  position: relative;
  display: inline-flex !important;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: currentColor;
  font-size: 0 !important;
  line-height: 1 !important;
}

.vf-hero__label,
.vf-section-label {
  color: var(--vf-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vf-hero h1,
.vf-video-title {
  max-width: 100%;
  width: 100%;
  margin: 8px 0 0;
  color: var(--vf-text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}

.vf-hero__copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--vf-muted);
  font-size: 15px;
  line-height: 1.7;
}

.vf-chip,
.vf-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--vf-green);
  color: #03110f;
  font-weight: 900;
}

.vf-chip {
  min-height: 36px;
  border: 1px solid var(--vf-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--vf-text);
  font-size: 13px;
}

.vf-chip:hover {
  border-color: rgba(31, 214, 173, 0.55);
  background: rgba(31, 214, 173, 0.12);
  color: var(--vf-text);
}

.vf-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vf-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2em !important;
}

.vf-section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vf-trending-block {
  margin-bottom: 36px;
}

.vf-section-title {
  margin: 4px 0 0;
  color: var(--vf-text);
  font-size: 24px;
  font-weight: 900;
}

.vf-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vf-sort__label {
  margin-right: 3px;
  color: var(--vf-muted);
  font-size: 13px;
  font-weight: 700;
}

.vf-sort__button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--vf-border);
  border-radius: 999px;
  background: var(--vf-panel);
  color: var(--vf-muted);
  font-size: 13px;
  font-weight: 700;
}

.vf-sort__button:hover,
.vf-sort__button.is-active {
  border-color: var(--vf-green);
  color: var(--vf-text);
}

.vf-sort__button.is-active {
  background: var(--vf-green);
  color: #111;
}

.vf-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vf-card {
  min-width: 0;
}

.vf-card .card__cover {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: var(--vf-panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.vf-card .card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-card .card__cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.vf-card .card__cover:after {
  display: none;
}

.vf-card .card__duration {
  position: static !important;
  order: 2;
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--vf-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.vf-card .card__play {
  display: none;
}

.vf-card .card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 9px;
}

.vf-card .card__title {
  order: 1;
  min-height: 0;
  color: var(--vf-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  white-space: normal;
}

.vf-card .card__title a {
  color: var(--vf-text);
}

.vf-card .card__title a:hover {
  color: var(--vf-green);
}

.vf-ad-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vf-ad-box {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--vf-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.vf-ad-box iframe,
.vf-ad-box img,
.ad-stack iframe,
.ad-stack img,
.detail-ad-box iframe,
.detail-ad-box img {
  max-width: 100%;
}

.vf-mobile-ads,
.ad-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.catalog__paginator-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2em !important;
  padding: 34px 0 4px;
}

.catalog__paginator-wrap .section__nav-wrap {
  display: flex !important;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog__paginator-wrap .page-link {
  display: grid !important;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center !important;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: var(--vf-panel);
  color: var(--vf-muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1 !important;
  text-align: center;
  vertical-align: middle;
  text-indent: 0;
}

.catalog__paginator-wrap .page-link i {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  line-height: 1;
}

.catalog__paginator-wrap .page-link__content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(0);
}

.catalog__paginator-wrap .page-link:hover,
.catalog__paginator-wrap .page-link--current {
  border-color: rgba(31, 214, 173, 0.7);
  background: rgba(31, 214, 173, 0.14);
  color: var(--vf-text);
}

.vf-video-page {
  padding-top: 98px;
}

.vf-watch-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.vf-watch-head {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.vf-video-title {
  font-size: 30px;
}

.vf-player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vf-border);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--vf-shadow);
  aspect-ratio: 16 / 9;
}

.vf-player-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.vf-player-load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(31, 214, 173, 0.15), #07110f 62%);
  color: var(--vf-text);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.vf-player-load__icon {
  display: block;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--vf-green);
  position: relative;
}

.vf-player-load__icon:after {
  content: "";
  position: absolute;
  top: 21px;
  left: 27px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #03110f;
}

.vf-player-lazy.is-loaded .vf-player-load {
  display: none;
}

.vf-watch-side {
  display: grid;
  gap: 14px;
  align-self: start;
}

.vf-poster-panel,
.vf-info-panel,
.article-panel {
  border: 1px solid var(--vf-border);
  border-radius: 16px;
  background: rgba(21, 24, 32, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.vf-poster-panel {
  overflow: hidden;
}

.vf-poster-panel img {
  display: block;
  width: 100%;
  aspect-ratio: auto !important;
  height: auto;
  object-fit: contain;
}

.vf-info-panel,
.article-panel {
  padding: 18px;
  color: var(--vf-muted);
  font-size: 15px;
  line-height: 1.75;
}

.vf-info-panel {
  margin-top: 2em !important;
}

.article-panel {
  margin-bottom: 2em !important;
}

.vf-info-panel strong,
.article-panel strong {
  color: var(--vf-text);
}

.section--border {
  border-top: 1px solid var(--vf-border);
}

.section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title {
  margin: 0;
  color: var(--vf-text);
  font-size: 24px;
  font-weight: 900;
}

.section__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: var(--vf-panel);
  color: var(--vf-text);
}

.section__nav--prev {
  margin-left: auto;
}

.section__carousel .vf-card {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--vf-border);
  background: #090a0c;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
}

.footer__nav a {
  color: var(--vf-muted);
}

.footer__nav a:hover {
  color: var(--vf-green);
}

.footer__back {
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: var(--vf-panel);
  color: var(--vf-text);
}

.section--pb0 {
  margin-top: 0 !important;
  padding-top: 112px !important;
}

.section--pb0 .row > div {
  max-width: 920px;
  padding: 22px;
  border: 1px solid var(--vf-border);
  border-radius: 16px;
  background: rgba(21, 24, 32, 0.78);
}

.section--pb0 h2,
.section--pb0 h3,
.section--pb0 legend {
  color: var(--vf-text);
  font-weight: 900;
}

.section--pb0 p,
.section--pb0 li,
.section__text,
.contacts__list {
  color: var(--vf-muted) !important;
  font-size: 15px;
  line-height: 1.75;
}

.contacts__list li {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--vf-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 576px) {
  .vf-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .header__content {
    height: 78px;
  }

  .header__nav {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .header__nav-item {
    width: auto;
    margin: 0;
  }

  .header__btn {
    display: none;
  }

  .header__search {
    position: relative;
    inset: auto;
    width: 290px;
    height: auto;
    padding: 0;
    background: transparent;
    pointer-events: auto;
  }

  .header__search-input {
    width: 100%;
    padding: 0 44px 0 15px;
  }

  .header__search-button {
    right: 13px;
  }

  .header__search-close,
  .header__search-btn {
    display: none;
  }

  .vf-shell {
    padding-top: 78px;
  }

  .vf-hero {
    min-height: 320px;
    padding: 34px;
  }

  .vf-hero h1,
  .vf-video-title {
    font-size: 46px;
  }

  .vf-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .vf-video-page {
    padding-top: 112px;
  }

  .vf-player-wrap iframe {
    min-height: 380px;
  }

  .footer__content {
    flex-direction: row;
    align-items: center;
  }

  .footer__nav {
    margin: 0;
  }

}

@media (min-width: 992px) {
  .vf-main-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .vf-ad-rail {
    position: sticky;
    top: 96px;
  }

  .vf-watch-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 1200px) {
  .vf-video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .vf-watch-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 767px) {
  .header__auth {
    margin-right: 46px;
  }

  .header__brand-text {
    max-width: 132px;
    font-size: 16px;
  }

  .vf-hero {
    padding: 20px;
    border-radius: 14px;
  }

  .vf-hero h1,
  .vf-video-title {
    font-size: 30px;
  }

  .vf-hero__copy {
    font-size: 14px;
  }

  .vf-section-bar {
    align-items: start;
    flex-direction: column;
  }

  .vf-notice {
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px 14px;
  }

  .vf-notice__copy {
    display: block;
  }

  .vf-sort {
    margin-top: 14px;
  }

  .vf-card .card__title {
    font-size: 13px;
  }

  .vf-info-panel,
  .article-panel {
    padding: 16px;
  }
}
