/*! mod_tcrutube: сетка видеотеки Rutube. (C) 2026 Иван Белов. GPL-2.0-or-later. */
.tcrt {
  --tcrt-navy: #22374D;
  --tcrt-mid: #35516E;
  --tcrt-gold: #C69F58;
  --tcrt-gold2: #E4CB92;
  --tcrt-ink: #3A4550;
  --tcrt-muted: #6B7784;
  --tcrt-paper: #F7F4EE;
  --tcrt-line: rgba(34, 55, 77, .12);
  --tcrt-serif: var(--serif, 'Cormorant Garamond', Georgia, serif);
  --tcrt-sans: var(--sans, 'Manrope', system-ui, sans-serif);
  box-sizing: border-box;
  margin: 8px 0 36px;
  color: var(--tcrt-navy);
  font-family: var(--tcrt-sans);
}
.tcrt *, .tcrt *::before, .tcrt *::after { box-sizing: border-box; }
.tcrt-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px 20px;
  grid-template-columns: repeat(var(--tcrt-cols, 4), minmax(0, 1fr));
}
@media (max-width: 1199px) {
  .tcrt-grid { grid-template-columns: repeat(min(3, var(--tcrt-cols, 4)), minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .tcrt-grid { grid-template-columns: repeat(min(2, var(--tcrt-cols, 4)), minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .tcrt-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.tcrt-item.is-hidden { display: none; }
.tcrt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tcrt-line);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 28px -18px rgba(34, 55, 77, .45);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  cursor: pointer;
}
.tcrt-card:hover, .tcrt-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(198, 159, 88, .55);
  box-shadow: 0 18px 36px -16px rgba(34, 55, 77, .55);
  color: inherit;
  text-decoration: none;
}
.tcrt-card:focus-visible { outline: 3px solid rgba(198, 159, 88, .7); outline-offset: 3px; }
.tcrt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #35516E, #22374D);
  overflow: hidden;
}
.tcrt-thumb img, .tcrt-thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcrt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(198, 159, 88, .95);
  box-shadow: 0 10px 24px -8px rgba(20, 30, 40, .6);
  transition: transform .25s ease, background .25s ease;
}
.tcrt-play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-style: solid;
  border-width: 11px 0 11px 16px;
  border-color: transparent transparent transparent #22374D;
}
.tcrt-card:hover .tcrt-play, .tcrt-card:focus-visible .tcrt-play {
  transform: scale(1.06);
  background: #E4CB92;
}
.tcrt-len {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 24, 36, .78);
  color: #fff;
  font: 600 11px/1.2 var(--tcrt-sans);
  letter-spacing: .02em;
}
.tcrt-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tcrt-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 20px/1.25 var(--tcrt-serif);
  color: var(--tcrt-navy);
  letter-spacing: .01em;
}
.tcrt-date {
  margin-top: auto;
  font: 500 12.5px/1.3 var(--tcrt-sans);
  color: var(--tcrt-muted);
}
.tcrt-more-wrap, .tcrt-channel { display: flex; justify-content: center; margin: 26px 0 0; }
.tcrt-more, body.site .tcrt a.tcrt-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #E4CB92, #C69F58);
  color: #2C2109;
  font: 700 12px/1.2 var(--tcrt-sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 22px -12px rgba(44, 33, 9, .45);
  transition: transform .25s, filter .25s;
}
.tcrt-more:hover, .tcrt-more:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.tcrt-more:focus-visible { outline: 3px solid rgba(198, 159, 88, .7); outline-offset: 3px; }
.tcrt-more[hidden] { display: none !important; }
.tcrt-channel { margin-top: 18px; }
body.site .tcrt-channel a, .tcrt-channel a {
  color: var(--tcrt-mid);
  font: 600 15px/1.4 var(--tcrt-sans);
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.site .tcrt-channel a:hover { color: var(--tcrt-navy); }
.tcrt-empty { margin: 8px 0 0; font: 400 16px/1.55 var(--tcrt-sans); color: var(--tcrt-ink); text-align: center; }

/* ----- модальное окно ----- */
html.tcrt-lock,
html.tcrt-lock body { overflow: hidden; }
.tcrt-modal[hidden] { display: none !important; }
.tcrt-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.tcrt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 24, 36, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tcrt-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, calc((90vh - 7.5rem) * 16 / 9), 100%);
  max-height: 90vh;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(198, 159, 88, .35);
  box-shadow: 0 40px 90px -24px rgba(8, 16, 26, .8);
}
.tcrt-modal-title {
  flex: 0 0 auto;
  margin: 0 48px 12px 0;
  padding: 0;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font: 600 26px/1.25 var(--tcrt-serif);
  color: var(--tcrt-navy);
}
.tcrt-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--tcrt-line);
  border-radius: 50%;
  background: #fff;
  color: var(--tcrt-navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.tcrt-x:hover, .tcrt-x:focus-visible { background: #F3EAD4; border-color: var(--tcrt-gold); }
.tcrt-x:focus-visible { outline: 3px solid rgba(198, 159, 88, .7); outline-offset: 2px; }
.tcrt-frame-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(90vh - 7.5rem);
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0E1824;
}
.tcrt-frame-wrap iframe,
.tcrt-frame-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tcrt-replay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(198, 159, 88, .95);
  box-shadow: 0 10px 24px -8px rgba(20, 30, 40, .6);
  cursor: pointer;
}
.tcrt-replay[hidden] { display: none !important; }
.tcrt-replay::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #22374D;
}
.tcrt-bare { position: relative; }
@media (max-width: 767px) {
  .tcrt-modal { padding: 12px; align-items: center; justify-content: center; }
  .tcrt-dialog {
    width: min(100%, calc((90vh - 6.5rem) * 16 / 9));
    max-height: 90vh;
    padding: 14px 12px 12px;
    border-radius: 22px;
  }
  .tcrt-modal-title { font-size: 18px; margin: 0 44px 10px 0; }
  .tcrt-frame-wrap { max-height: calc(90vh - 6.5rem); border-radius: 12px; }
  .tcrt-title { font-size: 18px; }
}
