/* Theme 2026v1 only — sticky header, modern search, footer */

/* ========== Sticky header ========== */

.header.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header.site-header .header_menu {
  background: transparent;
  height: auto;
  min-height: 72px;
}

.header.site-header .header_menu_inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
}

.header.site-header .header_logo {
  flex: 0 0 auto;
  height: auto;
  min-height: 72px;
}

.header.site-header .header_logo a {
  font-size: 28px;
}

/* Main nav — readable size like before */
.header.site-header .header_point {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.header.site-header .header_point a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #e8e8e8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header.site-header .header_point a.nav-hot,
.drawer-nav a.nav-hot,
.site-footer_nav a.nav-hot,
.site-footer_mobile a.nav-hot {
  color: #ffb5a8 !important;
  font-weight: 700;
}

.header.site-header .header_point a.nav-hot {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 91, 66, 0.35);
  background: rgba(255, 85, 64, 0.1);
}

.header.site-header .header_point a.nav-hot:hover {
  color: #fff !important;
  border-color: rgba(255, 91, 66, 0.55);
  background: rgba(255, 85, 64, 0.18);
}

.drawer-nav a.nav-hot {
  border: 1px solid rgba(255, 91, 66, 0.35);
  background: rgba(255, 85, 64, 0.1);
  border-radius: 12px;
}

.header.site-header .header_point a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ========== Search: outer pill + flex (kills main.css margin-left:-40px) ========== */

.header.site-header .header_search,
.header.site-header .header_search * {
  float: none !important;
}

.header.site-header .header_search {
  display: flex !important;
  flex: 0 0 280px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 4px 4px 4px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header.site-header .header_search:focus-within {
  border-color: rgba(206, 31, 28, 0.55) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(206, 31, 28, 0.18);
}

.header.site-header .header_search .search_input_main {
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f1f1f1 !important;
  font-size: 15px !important;
  line-height: 36px !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.header.site-header .header_search .search_input_main::placeholder {
  color: #888;
  opacity: 1;
}

.header.site-header .header_search .search_btn_main {
  box-sizing: border-box !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  flex: 0 0 36px !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ce1f1c !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.header.site-header .header_search .search_btn_main:hover {
  background: #e02824 !important;
  transform: scale(1.04) !important;
  cursor: pointer !important;
}

.header.site-header .header_search .search_btn_main:active {
  transform: scale(0.97) !important;
}

.header.site-header .header_search .search_btn_main img {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  pointer-events: none !important;
  filter: brightness(0) invert(1);
}

@media (max-width: 1280px) {
  .header.site-header .header_search {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
  }

  .header.site-header .header_point a {
    padding: 8px 10px;
    font-size: 15px;
  }
}

/* ========== Mobile header / drawer / tabs ========== */

.mob_header.site-mob-header {
  display: none;
  box-sizing: border-box;
  height: 58px;
  padding: 0 12px;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 320;
}

.mob-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mob-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  text-decoration: none !important;
}

.mob-icon-btn img {
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.mob-icon-btn svg {
  display: block;
}

.mob-icon-btn--tg {
  border-color: rgba(10, 88, 202, 0.45);
  background: rgba(10, 88, 202, 0.22);
  color: #7eb6ff;
}

.mob-icon-btn--tg:hover {
  background: rgba(10, 88, 202, 0.38);
  color: #fff;
}

.mob-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #ce1f1c !important;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none !important;
}

.mob-logo img {
  display: block;
  flex: 0 0 auto;
}

.mob-logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* New drawer: full-screen overlay + panel */
.left_menu.site-drawer {
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 400;
}

.left_menu.site-drawer.visible {
  left: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 360px);
  height: 100%;
  margin: 0;
  padding: 14px 14px 28px;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-104%);
  transition: transform 0.28s ease;
  overflow: auto;
  box-sizing: border-box;
}

.left_menu.site-drawer.visible .drawer-panel {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ce1f1c !important;
  font-size: 22px;
  font-weight: 700;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.drawer-nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: #e8e8e8;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 0;
}

.drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.drawer-cats__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}

.drawer-cats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-cats__list a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.95);
  color: #ddd;
  font-size: 13px;
  border-bottom: 0;
}

.drawer-cats__list a:hover,
.drawer-cats__more {
  border-color: rgba(206, 31, 28, 0.45);
  color: #ffd7d6;
}

/* Bottom tabs */
.mobile-tab-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 350;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.mobile-tab {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px;
  border-radius: 14px;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.mobile-tab__icon {
  display: inline-flex;
  color: inherit;
}

.mobile-tab.is-active {
  color: #ff8e8c;
  background: rgba(206, 31, 28, 0.14);
}

.mobile-tab span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Show mobile chrome under 1025px (matches current breakpoints) */
@media (max-width: 1024px) {
  body {
    margin-top: 58px !important;
    padding-bottom: 88px;
  }

  .mob_header.site-mob-header.is_mobile,
  .mob_header.site-mob-header.is_tablet,
  .mob_header.site-mob-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-tab-nav.is_mobile,
  .mobile-tab-nav.is_tablet,
  .mobile-tab-nav {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
  }

  /* hide desktop header chrome on small screens even if dual classes fight */
  .header.site-header {
    display: none !important;
  }

  .header_logo {
    margin-left: 0 !important;
  }
}

@media (min-width: 1025px) {
  .mob_header.site-mob-header,
  .mobile-tab-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* ========== Search page ========== */

.search-page {
  padding: 8px 0 28px;
}

.search-panel {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #1c1c1c;
  box-sizing: border-box;
}

.search-panel__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.search-panel__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-panel__filters::-webkit-scrollbar {
  display: none;
}

/* Works for both <button> and <a> (mix page sort links) */
.search-sort-btn,
a.search-sort-btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #bbb !important;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.search-sort-btn:hover,
a.search-sort-btn:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none !important;
}

.search-sort-btn.is-active,
a.search-sort-btn.is-active {
  border-color: rgba(206, 31, 28, 0.55);
  background: rgba(206, 31, 28, 0.16);
  color: #ffd7d6 !important;
}

.search-panel__input.search_input,
.search-panel__input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #f1f1f1 !important;
  font-size: 16px !important; /* prevent iOS zoom */
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
}

.search-panel__btn.search_btn,
.search-panel__btn {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  height: 48px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ce1f1c !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.search-panel__btn img {
  filter: brightness(0) invert(1);
  display: block;
}

.search-panel__btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.search-panel__status {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(206, 31, 28, 0.35);
  background: rgba(206, 31, 28, 0.12);
  color: #ffb4b2;
  font-size: 13px;
  text-align: left;
}

.search-panel__status.is-visible {
  display: block;
}

.search-panel__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #888;
}

.search-results {
  margin-bottom: 24px;
}

.search-results.is-loading {
  opacity: 0.72;
}

.search-results__head {
  margin-bottom: 12px;
}

.search-results__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f1f1f1;
}

.search-empty {
  margin-bottom: 24px;
}

.search-empty__card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1c1c1c;
}

.search-empty__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #888;
}

.search-empty__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-empty__chips::-webkit-scrollbar {
  display: none;
}

.search-empty__chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.95);
  color: #ddd;
  font-size: 13px;
  white-space: nowrap;
}

.search-empty__chips a:hover {
  border-color: rgba(206, 31, 28, 0.5);
  color: #ffd7d6;
}

.search-page .width_search {
  width: auto;
}

/* Mobile search: sticky compact panel, big touch targets */
@media (max-width: 1024px) {
  .search-page {
    padding-top: 0;
  }

  .search-page__header.page-header {
    margin-bottom: 12px;
    padding: 14px 14px 14px 18px;
  }

  .search-page__header .page-header__desc {
    display: none;
  }

  .search-page__header .page-header__title {
    font-size: 1.25rem;
  }

  .search-panel {
    position: sticky;
    top: 58px;
    z-index: 250;
    margin: 0 -4px 16px;
    padding: 10px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .search-panel__bar {
    gap: 8px;
  }

  .search-panel__input.search_input,
  .search-panel__input {
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
  }

  .search-panel__btn.search_btn,
  .search-panel__btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
  }

  .search-panel__btn-text {
    display: none;
  }

  .search-panel__filters {
    margin-top: 10px;
    gap: 6px;
  }

  .search-sort-btn,
  a.search-sort-btn {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1 !important;
  }

  .search-results__title {
    font-size: 16px;
  }

  .search-recommended .section-head__title {
    font-size: 18px;
  }
}

/* ========== Popular categories strip ========== */

.header_categories {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 12, 0.72);
}

.header_categories_track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header_categories_track::-webkit-scrollbar {
  display: none;
}

.header_categories_label {
  flex-shrink: 0;
  padding-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  white-space: nowrap;
}

.header_categories_track a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.9);
  color: #ececec;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header_categories_track a:hover {
  border-color: rgba(206, 31, 28, 0.55);
  color: #ffd7d6;
  background: rgba(206, 31, 28, 0.12);
}

.header_categories_track a.is-active {
  border-color: rgba(206, 31, 28, 0.75);
  background: rgba(206, 31, 28, 0.2);
  color: #fff;
}

.header_categories_track a.header_categories_more {
  border-style: dashed;
  color: #aaa;
}

.header_categories_track a.header_categories_more:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* ========== Video cards (theme 2026) ========== */

.video_content.video_card,
.video_card {
  height: auto !important;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161616;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: none !important;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.video_content.video_card:hover,
.video_card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.video_card:hover .link_video,
.video_card:hover .video_card__title {
  color: #fff !important;
}

.video_card__link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

.video_card .video_preview,
.video_card__media {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  background-color: #111;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  animation: none !important; /* no eternal skeleton pulse on loaded cards */
  transition: transform 0.45s ease;
}

.video_card:hover .video_card__media {
  transform: scale(1.04);
}

.video_card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.video_card:hover .video_card__shade {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.video_card .video_info,
.video_card__badges {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  top: auto;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  font-size: 11px;
  pointer-events: none;
}

.video_card .video_time,
.video_card .video_eye,
.video_card__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  color: #f0f0f0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
  white-space: nowrap;
}

.video_card__pill img,
.video_card .video_time img,
.video_card .video_eye img {
  display: block;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.video_card__orient {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  color: #eee;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.video_card__orient img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Legacy 2025 class — keep visible with same treatment */
.video_card .video_vertical {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  pointer-events: none;
}

.video_card .video_vertical img {
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.video_card__body {
  padding: 10px 12px 12px;
}

.video_card .link_video,
.video_card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  min-height: 2.5em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #ececec !important;
  transition: color 0.2s ease;
}

/* Skeleton cards */
.recommended-skel-card .video_card__media,
.recommended-skel-preview {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: #222 !important;
  animation: skeleton-loading 1.1s infinite ease-in-out !important;
}

.recommended-skel-card .video_card__body {
  padding: 12px;
}

.recommended-skel-title {
  height: 12px;
  margin-top: 0;
  border-radius: 6px;
  background: #2a2a2a;
  animation: skeleton-loading 1.1s infinite ease-in-out;
  width: 92%;
}

.recommended-skel-title--short {
  width: 58%;
  margin-top: 8px;
  height: 10px;
}

@media (max-width: 575px) {
  .video_content.video_card,
  .video_card {
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .video_card .link_video,
  .video_card__title {
    font-size: 13px;
    min-height: 2.4em;
  }

  .video_card__body {
    padding: 8px 10px 10px;
  }
}

/* ========== Footer ========== */

footer.site-footer {
  height: auto;
  margin-top: 40px;
  padding: 40px 0 28px;
  line-height: 1.5;
  background: #161616;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #888;
}

/* Compact desktop footer: brand → nav row → legal row → copyright */
.site-footer_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.site-footer_logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ce1f1c;
  font-size: 20px;
  font-weight: 700;
}

.site-footer_logo:hover {
  color: #e02824;
}

.site-footer_logo img {
  display: block;
}

.site-footer_tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #777;
}

.site-footer_nav,
.site-footer_legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.site-footer_nav a,
.site-footer_legal a {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.2;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-footer_nav a:hover,
.site-footer_legal a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-footer_nav a.nav-hot {
  color: #ffb5a8 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 91, 66, 0.3);
  background: rgba(255, 85, 64, 0.08);
}

.site-footer_nav a.nav-hot:hover {
  color: #fff !important;
  background: rgba(255, 85, 64, 0.16);
}

.site-footer_legal {
  margin-top: 8px;
}

.site-footer_legal a {
  color: #8a8a8a;
  font-size: 13px;
}

.site-footer_bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #666;
}

.site-footer_bottom a {
  margin: 0;
  color: #999;
}

.site-footer_bottom a:hover {
  color: #fff;
}

/* Mobile compact footer — horizontal slide; hidden on desktop */
.site-footer_mobile {
  display: none;
}

/* Chips footer under 1025px (aligned with mobile chrome breakpoint) */
@media (max-width: 1024px) {
  .site-footer_mobile {
    display: block;
    margin: 0 0 12px;
    margin-left: -12px;
    margin-right: -12px;
  }
}

@media (max-width: 767px) {
  footer.site-footer {
    margin-top: 20px;
    padding: 14px 0 18px;
  }

  .site-footer_mobile-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 2px 12px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .site-footer_mobile-track::-webkit-scrollbar {
    display: none;
  }

  .site-footer_mobile-track a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .site-footer_mobile-track a.nav-hot {
    border-color: rgba(255, 91, 66, 0.4);
    background: rgba(255, 85, 64, 0.12);
    color: #ffb5a8 !important;
  }

  .site-footer_bottom {
    margin-top: 0;
    padding-top: 10px;
    font-size: 11px;
    justify-content: center;
    text-align: center;
  }
}

/* ========== Legal / static content ========== */

.legal-card {
  margin-bottom: 16px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.9), rgba(22, 22, 22, 0.92));
}

.legal-content {
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 52rem;
}

.legal-content p,
.legal-content .text p {
  margin: 0 0 1em;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 1.4em 0 0.55em;
  color: #f2f2f2;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-content h2 { font-size: 1.25rem; }
.legal-content h3 { font-size: 1.1rem; }

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.legal-content li {
  margin: 0.35em 0;
}

.legal-content a {
  color: #ff8e8c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #fff;
}

.legal-content strong,
.legal-content b {
  color: #eee;
  font-weight: 700;
}

/* Numbered plain-text blocks from old DLE static pages */
.legal-content br + br {
  content: "";
  display: block;
  margin-top: 0.4em;
}

.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(28, 28, 28, 0.9);
}

.legal-related a {
  color: #bbb;
  font-size: 14px;
  transition: color 0.2s ease;
}

.legal-related a:hover {
  color: #ff8e8c;
}

@media (min-width: 768px) {
  .legal-card {
    padding: 28px 28px;
  }

  .legal-content {
    font-size: 16px;
  }
}

/* ========== Feedback form ==========
   DLE wraps this page in #sendmail form — keep fields as divs, never nest <form>.
*/

.feedback-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  box-sizing: border-box;
}

.feedback-page .page-header {
  margin-top: 4px;
}

.feedback-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.feedback-card,
.feedback-aside,
.feedback-aside-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.feedback-card {
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #1c1c1c;
}

.feedback-field {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  box-sizing: border-box;
}

.feedback-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.3;
}

.feedback-label em {
  color: #ce1f1c;
  font-style: normal;
}

.feedback-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #777;
}

.feedback-input,
.feedback-textarea,
.feedback-select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #111;
  color: #f1f1f1;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-input,
.feedback-select {
  height: 46px;
  padding: 0 14px;
}

.feedback-select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.feedback-textarea {
  min-height: 128px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.feedback-input:focus,
.feedback-textarea:focus,
.feedback-select:focus {
  border-color: rgba(206, 31, 28, 0.55);
  box-shadow: 0 0 0 3px rgba(206, 31, 28, 0.16);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}

.feedback-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ce1f1c;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.feedback-submit:hover {
  background: #e02824;
}

.feedback-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.feedback-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.feedback-note a {
  color: #bbb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback-note a:hover {
  color: #fff;
}

.feedback-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(206, 31, 28, 0.35);
  background: rgba(206, 31, 28, 0.12);
  color: #ffb4b2;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.feedback-error.is-success {
  border-color: rgba(64, 180, 110, 0.4);
  background: rgba(40, 120, 70, 0.18);
  color: #b6f0c8;
}

.feedback-aside-card {
  padding: 18px 18px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #1c1c1c;
}

.feedback-aside-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f1f1f1;
}

.feedback-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-aside-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-aside-list li:first-child {
  border-top: 0;
}

.feedback-aside-list a {
  display: block;
  padding: 12px 0;
  color: #bbb;
  font-size: 14px;
  line-height: 1.35;
}

.feedback-aside-list a:hover {
  color: #ff8e8c;
}

/* Kill outer DLE #sendmail form quirks on this page only */
#sendmail {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

#sendmail > input[type="hidden"] {
  display: none;
}

@media (min-width: 900px) {
  .feedback-shell {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.9fr);
    gap: 20px;
    align-items: start;
  }

  .feedback-card {
    padding: 26px 24px;
  }
}

/* ========== Home hero ========== */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 4px 0 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(206, 31, 28, 0.16), transparent 50%),
    linear-gradient(160deg, #1b1b1b 0%, #121212 100%);
  box-sizing: border-box;
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e04542;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f7f7f7;
}

.home-hero__desc {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.55;
  color: #9a9a9a;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-hero__btn--primary {
  background: #ce1f1c;
  color: #fff !important;
}

.home-hero__btn--primary:hover {
  background: #e02824;
  color: #fff !important;
}

.home-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8 !important;
}

.home-hero__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
}

.home-hero__feature {
  min-width: 0;
}

.hero-feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0f0f;
}

.hero-feature--skel {
  pointer-events: none;
}

.hero-feature__media--skel {
  background: #222;
  animation: skeleton-loading 1.1s infinite ease-in-out;
}

.hero-feature__badge--skel {
  display: inline-block;
  width: 72px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  background: #2a2a2a;
  animation: skeleton-loading 1.1s infinite ease-in-out;
}

.hero-feature__title--skel {
  display: block;
  width: 78%;
  height: 18px;
  margin-top: 12px;
  border-radius: 8px;
  background: #2a2a2a;
  animation: skeleton-loading 1.1s infinite ease-in-out;
}

.hero-feature__meta--skel {
  display: block;
  width: 42%;
  height: 12px;
  margin-top: 10px;
  border-radius: 6px;
  background: #2a2a2a;
  animation: skeleton-loading 1.1s infinite ease-in-out;
}

.hero-feature__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.45s ease;
}

.hero-feature:hover .hero-feature__media {
  transform: scale(1.04);
}

.hero-feature__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-feature__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px;
}

.hero-feature__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(206, 31, 28, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-feature__title {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #cfcfcf;
  font-size: 12px;
}

@media (min-width: 992px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
    gap: 22px;
    padding: 24px;
    align-items: stretch;
  }

  .home-hero__desc {
    font-size: 15px;
  }

  .hero-feature {
    min-height: 280px;
  }

  .hero-feature__title {
    font-size: 18px;
  }
}

/* Tablet: slightly compact hero */
@media (max-width: 1024px) and (min-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 4px 0 14px;
    padding: 14px;
  }

  .home-hero__title {
    font-size: 1.35rem;
  }

  .home-hero__feature {
    order: -1;
  }

  .hero-feature {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }
}

/* Mobile: drop hero chrome, keep compact centered H1 for SEO */
@media (max-width: 767px) {
  .home-hero {
    display: block;
    margin: 2px 0 8px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-align: center;
  }

  .home-hero__eyebrow,
  .home-hero__desc,
  .home-hero__actions,
  .home-hero__feature {
    display: none !important;
  }

  .home-hero__title {
    margin: 0 auto;
    padding: 0 8px;
    max-width: 22em;
    font-size: clamp(1.05rem, 4.4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: #cfcfcf;
    text-align: center;
  }

  /* Always break before «смотреть бесплатно» on phones */
  .home-hero__title-tail {
    display: block;
    margin-top: 2px;
  }
}

/* ========== Promo banners (TG / Fap.One) ========== */

#promo-banner-slot {
  margin: 0 0 14px;
}

.promo-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 40px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(206, 31, 28, 0.12), transparent 50%),
    linear-gradient(160deg, #1c1c1c 0%, #141414 100%);
  color: #f1f1f1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

#promo-banner-tg.promo-banner {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(10, 88, 202, 0.28), transparent 52%),
    linear-gradient(160deg, #1a2330 0%, #12161d 100%);
  border-color: rgba(56, 120, 220, 0.25);
}

.promo-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.promo-banner__close:hover,
.promo-banner__close:focus {
  background: rgba(206, 31, 28, 0.9);
  border-color: transparent;
  color: #fff;
}

.promo-banner__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#promo-banner-tg .promo-banner__badge {
  background: #0a58ca;
  color: #fff;
}

#promo-banner-fap .promo-banner__badge {
  background: rgba(206, 31, 28, 0.9);
  color: #fff;
}

.promo-banner__title {
  margin: 0;
  padding-right: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f5f5f5;
}

.promo-banner__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9a9a9a;
}

.promo-banner__actions {
  margin-top: 6px;
}

.promo-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ce1f1c;
  border: 0;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.promo-banner__button:hover,
.promo-banner__button:focus {
  background: #e02824;
  color: #fff !important;
}

#promo-banner-tg .promo-banner__button {
  background: #0a58ca;
}

#promo-banner-tg .promo-banner__button:hover,
#promo-banner-tg .promo-banner__button:focus {
  background: #1464d8;
}

@media (min-width: 576px) {
  .promo-banner {
    padding: 16px 44px 16px 16px;
  }

  .promo-banner__title {
    font-size: 16px;
  }

  .promo-banner__text {
    font-size: 13px;
  }
}

.search-recommended {
  margin-top: 8px;
  margin-bottom: 20px;
}

.search-recommended[hidden] {
  display: none !important;
}

/* ========== Section heads (feed — light, not page-header cards) ========== */

.section-head {
  margin: 4px 0 14px;
  padding: 0 2px;
}

.section-head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f3f3f3;
}

.section-head__sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}

.section-head__link {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: #e04542 !important;
  white-space: nowrap;
}

.section-head__link:hover {
  color: #ff8e8c !important;
}

/* ========== Category catalog + listing ========== */

.cat-toolbar {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1a1a1a;
}

.cat-toolbar__search {
  margin-bottom: 12px;
}

.cat-mix-builder {
  margin-top: 4px;
}

.cat-mix-builder__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.cat-mix-builder__label span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #666;
}

.cat-mix-builder__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
}

.cat-mix-builder__list .mix-pick {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cat-mix-builder__list .mix-pick.is-selected {
  border-color: rgba(206, 31, 28, 0.55);
  background: rgba(206, 31, 28, 0.14);
  color: #ffd7d6;
}

.cat-mix-builder__list .mix-pick.is-locked,
.cat-mix-builder__list .mix-pick:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1024px) {
  .cat-mix-builder__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .cat-mix-builder__list::-webkit-scrollbar {
    display: none;
  }
}

.cat-mix-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.cat-mix-bar.is-active {
  border-style: solid;
  border-color: rgba(206, 31, 28, 0.35);
}

.cat-mix-bar__count {
  font-size: 13px;
  color: #bbb;
}

.cat-mix-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cat-mix-bar__clear {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #999;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cat-mix-bar__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ce1f1c;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

.cat-mix-bar__go.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cat-toolbar__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}

.mix-page__cats,
.mix-page__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mix-page__sort .search-sort-btn {
  /* keep pill height consistent next to chips */
  min-height: 36px;
  height: 36px;
}

.mix-page__cat-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd !important;
  font-size: 13px;
}

.mix-page__cat-chip--muted {
  border-style: dashed;
  color: #aaa !important;
}

.mix-page__pages {
  margin: 20px 0 28px;
}


.cat-toolbar__input {
  display: block;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #111;
  color: #f1f1f1;
  font-size: 16px; /* iOS: no zoom on focus */
  outline: none;
}

.cat-toolbar__input:focus {
  border-color: rgba(206, 31, 28, 0.5);
  box-shadow: 0 0 0 3px rgba(206, 31, 28, 0.15);
}

.cat-toolbar__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-toolbar__chips::-webkit-scrollbar {
  display: none;
}

.cat-toolbar__chips a,
.cat-listing__chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.95);
  color: #ddd;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.cat-toolbar__chips a:hover,
.cat-listing__chips a:hover,
.cat-listing__chips a.is-active {
  border-color: rgba(206, 31, 28, 0.5);
  color: #ffd7d6;
  background: rgba(206, 31, 28, 0.12);
}

.cat-toolbar__meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: #888;
}

.cat-filter-empty {
  margin: 8px 0 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: #999;
  font-size: 14px;
  text-align: center;
}

.cat-grid {
  margin-left: -8px;
  margin-right: -8px;
}

.cat-grid > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 148px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161616;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.cat-card__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.001);
  transition: transform 0.45s ease;
}

.cat-card:hover .cat-card__media {
  transform: scale(1.06);
}

.cat-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0.28) 42%, rgba(8, 8, 8, 0.94) 100%);
  pointer-events: none;
}

.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 12px 12px;
}

.cat-card__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* Category videos listing (/videos/slug/) */
/* /best-porno.html trends + recommendations */
.best-trends {
  margin-bottom: 8px;
}

.best-page__recommended {
  margin-top: 12px;
  margin-bottom: 24px;
}

.cat-listing {
  margin-bottom: 8px;
}

.cat-listing__tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.cat-listing__all {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: #bbb !important;
}

.cat-listing__all:hover {
  color: #fff !important;
}

.cat-listing__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-listing__chips::-webkit-scrollbar {
  display: none;
}

/* Tighter video grid under category header */
.cat-listing + * {
  /* content follows in same row */
}

@media (min-width: 768px) {
  .cat-card {
    min-height: 180px;
  }

  .cat-card__title {
    font-size: 16px;
  }

  .cat-toolbar {
    padding: 16px;
  }

  .cat-listing__tools {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 575px) {
  .cat-grid > [class*="col-"] {
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .cat-grid {
    margin-left: -5px;
    margin-right: -5px;
  }

  .cat-card {
    min-height: 128px;
    border-radius: 14px;
  }

  .cat-card__title {
    font-size: 13px;
  }
}

/* ========== Page header (Gostosa-style) ========== */

.page-header {
  position: relative;
  overflow: hidden;
  margin: 8px 0 20px;
  padding: 22px 22px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(206, 31, 28, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.72), rgba(20, 20, 20, 0.55));
  text-align: left;
}

.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ce1f1c 0%, rgba(206, 31, 28, 0.25) 100%);
  border-radius: 18px 0 0 18px;
}

.page-header--section {
  margin-bottom: 16px;
  padding: 18px 20px 18px 24px;
}

.page-header__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e04542;
}

.page-header__title {
  margin: 6px 0 0;
  padding: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #f7f7f7;
  text-align: left;
}

/* Override generic .title centering if both classes ever meet */
.title.page-header__title,
h1.page-header__title,
h2.page-header__title {
  text-align: left;
  margin-top: 6px;
  margin-bottom: 0;
  color: #f7f7f7;
}

.page-header__desc {
  margin: 10px 0 0;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.55;
  color: #9a9a9a;
}

.page-header__desc:empty {
  display: none;
}

/* Category intro — short blurb + «Подробнее» (category_intros.php) */
.cat-desc {
  margin-top: 10px;
  max-width: 40rem;
}

.cat-desc .page-header__desc {
  margin-top: 0;
}

.page-header__desc--cat {
  max-width: 40rem;
}

.page-header__desc--cat-full {
  max-width: 40rem;
  margin-top: 8px !important;
  color: #a8a8a8;
}

.cat-desc__more {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #ce1f1c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}

.cat-desc__more:hover,
.cat-desc__more:focus-visible {
  color: #ff6b68;
  outline: none;
  text-decoration: underline;
}

.cat-desc.is-open .cat-desc__short {
  display: none;
}

@media (min-width: 768px) {
  .page-header {
    padding: 26px 28px 26px 32px;
  }

  .page-header__desc {
    font-size: 15px;
  }
}

/* ========== New videos block ========== */

.new-videos-section {
  margin: 8px 0 28px;
}

.new-videos-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 8px;
}

.new-videos-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.95);
  color: #eee !important;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.new-videos-more-btn:hover {
  border-color: rgba(206, 31, 28, 0.55);
  background: rgba(206, 31, 28, 0.14);
  color: #fff !important;
}

/* ========== Recommended block ========== */

.recommended-section {
  margin: 8px 0 28px;
}

.recommended-grid {
  min-height: 40px;
}

.recommended-empty {
  padding: 28px 12px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

/* Skeleton cards — same grid footprint as real shortstory cards */
.recommended-skel-card {
  pointer-events: none;
  transform: none !important;
  cursor: default;
}

.recommended-skel-preview {
  background: #222 !important;
  background-image: none !important;
  animation: skeleton-loading 1.1s infinite ease-in-out;
}

.recommended-skel-title {
  height: 14px;
  margin-top: 10px;
  border-radius: 8px;
  background: #222;
  animation: skeleton-loading 1.1s infinite ease-in-out;
  width: 92%;
}

.recommended-skel-title--short {
  width: 58%;
  margin-top: 8px;
  height: 12px;
  opacity: 0.85;
}

.recommended-skel-item:nth-child(odd) .recommended-skel-preview,
.recommended-skel-item:nth-child(odd) .recommended-skel-title {
  animation-delay: 0.15s;
}

.recommended-skel-item:nth-child(3n) .recommended-skel-preview,
.recommended-skel-item:nth-child(3n) .recommended-skel-title {
  animation-delay: 0.3s;
}

.recommended-section.is-loading .recommended-more-btn {
  opacity: 0.7;
}

.recommended-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.recommended-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.95);
  color: #eee;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.recommended-more-btn:hover:not(:disabled) {
  border-color: rgba(206, 31, 28, 0.55);
  background: rgba(206, 31, 28, 0.14);
  color: #fff;
}

.recommended-more-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ========== Tags directory (/tags/) ========== */

.tag-list-body .page-header {
  margin-bottom: 12px;
}

.tag-list__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-list__section {
  margin-bottom: 28px;
}

.tag-list__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(206, 31, 28, 0.16);
  border: 1px solid rgba(206, 31, 28, 0.35);
  color: #ffb0ae;
  font-size: 13px;
  font-weight: 700;
}

.tag-list__badge--muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.tag-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.tag-list__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eee !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tag-list__card:hover {
  border-color: rgba(206, 31, 28, 0.5);
  background: rgba(206, 31, 28, 0.1);
  transform: translateY(-1px);
  color: #fff !important;
}

.tag-list__card--pop.w4,
.tag-list__card--pop.w5 {
  border-color: rgba(206, 31, 28, 0.28);
  background: linear-gradient(145deg, rgba(206, 31, 28, 0.12), rgba(255, 255, 255, 0.03));
}

.tag-list__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}

.tag-list__meta {
  font-size: 12px;
  color: #8a8a8a;
}

.tag-list__count {
  color: #ccc;
  font-weight: 600;
}

.tag-list__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-list__chip {
  text-transform: none;
}

@media (max-width: 576px) {
  .tag-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tag-list__card {
    min-height: 72px;
    padding: 12px;
  }

  .tag-list__name {
    font-size: 14px;
  }
}

/* ========== Hot strip (home PC + fullstory) ========== */

.hot-strip {
  margin: 8px 0 20px;
}

.hot-strip__eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* One row only: 3 phone · 6 tablet · 9 desktop (fap.one style) */
.hot-strip--home,
.hot-strip--home-pc,
.hot-strip--video {
  display: block;
}

.hot-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .hot-strip__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1200px) {
  .hot-strip__grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.hot-strip__card {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090909;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Hide 4–9 on phone; 7–9 on tablet — MUST come after base .hot-strip__card */
.hot-strip__card--md,
.hot-strip__card--lg {
  display: none !important;
}

@media (min-width: 768px) {
  .hot-strip__card--md {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .hot-strip__card--lg {
    display: block !important;
  }
}

.hot-strip__card:hover {
  border-color: rgba(255, 91, 66, 0.45);
  transform: translateY(-1px);
}

.hot-strip__media {
  display: block;
  aspect-ratio: 9 / 14;
  background: #000 center / cover no-repeat;
  position: relative;
  transition: transform 0.4s ease;
}

.hot-strip__card:hover .hot-strip__media {
  transform: scale(1.03);
}

.hot-strip__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 45%);
  pointer-events: none;
}

/* ========== Hot catalog /hot/ (TikTok-style grid; header = site page-header) ========== */

.hot-catalog {
  padding-bottom: 48px;
}

.hot-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 576px) {
  .hot-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 992px) {
  .hot-catalog__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.hot-catalog__card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090909;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hot-catalog__card:hover {
  border-color: rgba(255, 91, 66, 0.45);
  transform: translateY(-2px);
}

.hot-catalog__media {
  position: relative;
  aspect-ratio: 9 / 14;
  background-color: #000;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.hot-catalog__card:hover .hot-catalog__media {
  transform: scale(1.03);
}

.hot-catalog__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.hot-catalog__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 70%);
  pointer-events: none;
}

.hot-catalog__time {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hot-catalog__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px;
}

.hot-catalog__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.hot-catalog__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 575px) {
  .hot-catalog__grid {
    gap: 8px;
  }

  .hot-catalog__card {
    border-radius: 12px;
  }

  .hot-catalog__meta {
    padding: 10px;
  }

  .hot-catalog__title {
    font-size: 12px;
  }
}

/* ========== Tag SEO pages (/tags/{slug}/) ========== */

.tag-page-body .page-header {
  margin-bottom: 8px;
}

.tag-page__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
}

.tag-page__back {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cfcfcf !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.tag-page__back:hover {
  border-color: rgba(206, 31, 28, 0.45);
  color: #fff !important;
}

.tag-page__sort {
  margin-top: 12px;
}

.tag-page__grid {
  margin-top: 8px;
}

.tag-page__related {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tag-page__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-page__cloud .video-page__tag.is-active {
  border-color: rgba(206, 31, 28, 0.55);
  background: rgba(206, 31, 28, 0.16);
  color: #fff !important;
}

.tag-page__count {
  opacity: 0.65;
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
}

/* ========== Full video page (fullstory) ========== */

.video-page__player-col {
  position: relative;
  padding-top: 20px;
}

.video-player-shell.vbm-bm {
  position: relative;
  width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.video-player-shell .plyr,
.video-player-shell .plyr-player,
.video-player-shell video {
  width: 100%;
  height: 100%;
}

.video-player-shell .plyr {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 18px;
}

.video-player-shell .plyr__video-wrapper {
  height: 100%;
}

.video-player-shell .plyr video {
  object-fit: contain;
  background: #000;
}

.video-player-shell__ad {
  z-index: 2;
}

.video-player-shell__brand {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  color: #ce1f1c !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.video-player-shell__brand:hover {
  opacity: 1;
  color: #ff4a47 !important;
}

.video-page__side-ad.responsive-banner {
  padding-top: 20px;
  display: flex;
  align-items: stretch;
}

.video-page__side-ad.responsive-banner > * {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.video-page__meta {
  margin-top: 16px;
}

.video-page__title.video_title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: #f5f5f5;
  letter-spacing: -0.01em;
}

.video-page__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #9a9a9a;
  font-size: 14px;
}

.video-page__views,
.video-page__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-page__views img,
.video-page__duration img {
  display: block;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

.video-page__cats {
  margin-top: 4px;
}

.video-page__cat-list.video_categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 0;
  margin: 12px 0 8px;
  padding: 0;
  overflow: visible;
  white-space: normal;
}

.video-page__cat-list.video_categories a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(206, 31, 28, 0.45);
  border-radius: 999px;
  background: rgba(206, 31, 28, 0.08);
  color: #ff8a87 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.video-page__cat-list.video_categories a:hover {
  border-color: rgba(206, 31, 28, 0.75);
  background: rgba(206, 31, 28, 0.18);
  color: #fff !important;
}

.video-page__about {
  margin-top: 10px;
  margin-bottom: 4px;
}

.video-page__about-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.video-page__desc {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-page__desc-body {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

.video-page__desc-body p {
  margin: 0 0 0.6em;
}

.video-page__desc-body p:last-child {
  margin-bottom: 0;
}

.video-page__desc-body:empty,
.video-page__desc:has(.video-page__desc-body:empty) {
  display: none;
}

.video-page__tags {
  margin-bottom: 14px;
}

.video-page__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Hide tags block when neither DLE tags nor keywords produced chips */
.video-page__tags:not(:has(a)) {
  display: none;
}

.video-page__tag,
.video-page__tags-list a,
.video-page__tags-list span a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cfcfcf !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.video-page__tag:hover,
.video-page__tags-list a:hover,
.video-page__tags-list span a:hover {
  border-color: rgba(206, 31, 28, 0.45);
  background: rgba(206, 31, 28, 0.12);
  color: #fff !important;
}

.video-page__tags-list span {
  display: contents;
}

.video-page__admin-body {
  margin-top: 8px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.5;
}

.video-page__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  margin: 4px 0 8px;
  font-size: 13px;
}

.video-page__legal a {
  color: #777 !important;
  text-decoration: none !important;
}

.video-page__legal a:hover {
  color: #bbb !important;
}

/* TG promo above player — mobile only, same width as player / page container column */
.video-page__tg-bar {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a8ad4 0%, #0d6cb5 55%, #0a4f8a 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.video-page__tg-bar[hidden] {
  display: none !important;
}

/* Bootstrap d-lg-none hides on ≥992px; keep override for hidden */
@media (min-width: 992px) {
  .video-page__tg-bar {
    display: none !important;
  }
}

.video-page__tg-bar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  color: #fff !important;
  text-decoration: none !important;
}

.video-page__tg-bar-link:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

.video-page__tg-bar-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}

.video-page__tg-bar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.video-page__tg-bar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}

.video-page__tg-bar-sub {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-page__tg-bar-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 28px;
  height: 28px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.video-page__tg-bar-close:hover,
.video-page__tg-bar-close:focus-visible {
  background: rgba(0, 0, 0, 0.3);
  outline: none;
}

.video-page__recommended {
  margin-top: 12px;
  margin-bottom: 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
  .video-page__player-col {
    padding-top: 12px;
  }

  .video-player-shell.vbm-bm {
    border-radius: 14px;
  }

  .video-player-shell .plyr {
    border-radius: 14px;
  }

  .video-page__title.video_title {
    font-size: 18px;
  }

  .video-page__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .video-player-shell.vbm-bm {
    border-radius: 12px;
    /* Avoid ultra-tall portrait letterbox; keep playable height */
    min-height: 200px;
  }

  .video-player-shell__brand {
    top: 8px;
    right: 10px;
    font-size: 13px;
  }
}

/* Footer responsive + mobile (clear of bottom tabs) */
@media (max-width: 1024px) {
  footer.site-footer {
    margin-top: 28px;
    padding: 24px 0 110px;
  }

  /* Desktop link rows hide on mobile — chips take over */
  .site-footer_nav,
  .site-footer_legal {
    display: none;
  }

  .site-footer_top {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer_logo {
    font-size: 18px;
  }

  .site-footer_tagline {
    width: 100%;
    font-size: 12px;
  }

  .site-footer_bottom {
    margin-top: 14px;
    padding-top: 12px;
  }
}

@media (min-width: 1025px) {
  footer.site-footer {
    padding: 28px 0 22px;
  }
}

/* ========== In-skin system messages (info.tpl) ========== */

.site-msg {
  position: relative;
  overflow: hidden;
  margin: 12px 0 28px;
  padding: 28px 24px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(206, 31, 28, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.72), rgba(20, 20, 20, 0.55));
}

.site-msg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ce1f1c 0%, rgba(206, 31, 28, 0.25) 100%);
  border-radius: 18px 0 0 18px;
}

.site-msg__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e04542;
}

.site-msg__title {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f7f7f7;
  line-height: 1.25;
}

.site-msg__body {
  margin-top: 12px;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.55;
  color: #9a9a9a;
}

.site-msg__body a {
  color: #ffb0ab;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.site-msg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-msg__btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.site-msg__btn--primary {
  border-color: transparent;
  background: #ce1f1c !important;
  color: #fff !important;
}

.site-msg__btn--primary:hover {
  background: #e02824 !important;
  color: #fff !important;
}

.site-msg__btn--hot {
  border-color: rgba(255, 91, 66, 0.35);
  background: rgba(255, 85, 64, 0.1) !important;
  color: #ffb5a8 !important;
}

.site-msg__btn--hot:hover {
  background: rgba(255, 85, 64, 0.18) !important;
  color: #fff !important;
}

@media (max-width: 480px) {
  .site-msg {
    padding: 22px 18px 18px 22px;
  }

  .site-msg__btn {
    flex: 1 1 auto;
  }
}
