/* Карточка описания (под post-card) */
.desc-card{
  margin-top:14px;
  background:#ffffff;
  border-radius:12px;
  overflow:hidden;
  box-sizing:border-box;
  border:1px solid rgba(0,0,0,.06);
}

/* Шапка */
.desc-card__head{
  padding:14px 16px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border-bottom:1px solid rgba(0,0,0,.06);
  position:relative;
}

.desc-card__head:after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:-1px;
  height:3px;
  background:linear-gradient(90deg, #2dc26b 0%, #2dc26b 40%, rgba(45,194,107,0) 100%);
  border-radius:999px;
}

.desc-card__title{
  margin:0;
  font-size:1.25rem;
  line-height:1.25;
  font-weight:800;
  color:#2c3e50;
}

/* Реклама (если есть) */
.desc-card__ad{
  padding:12px 16px 0;
}

/* Тело описания */
.desc-card__body{
  padding:14px 16px 16px;
  color:#1f2d3d;
  font-size:16px;
  line-height:1.65;
}

/* Типографика внутри full-story */
.desc-card__body p{
  margin:0 0 12px;
}

.desc-card__body h3,
.desc-card__body h4{
  margin:18px 0 10px;
  line-height:1.25;
  color:#2c3e50;
}

.desc-card__body a{
  color:#1e88e5;
  text-decoration:none;
  border-bottom:1px dashed rgba(30,136,229,.35);
}

.desc-card__body a:hover{
  border-bottom-style:solid;
}

.desc-card__body ul,
.desc-card__body ol{
  margin:0 0 12px 20px;
}

.desc-card__body li{
  margin:6px 0;
}

.desc-card__body img{
  max-width:100%;
  height:auto;
  display:block;
  margin:12px auto;
  border-radius:12px;
}

.desc-card__body blockquote{
  margin:12px 0;
  padding:12px 14px;
  background:#f6fbf8;
  border-left:4px solid #2dc26b;
  border-radius:10px;
}

/* Если внутри описания случайно прилетят таблицы */
.desc-card__body table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  margin:12px 0;
}

.desc-card__body td,
.desc-card__body th{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.desc-card__body tr:last-child td,
.desc-card__body tr:last-child th{
  border-bottom:none;
}

/* Мобилка */
@media (max-width: 480px){
  .desc-card__head{ padding:12px 12px; }
  .desc-card__head:after{ left:12px; right:12px; }
  .desc-card__ad{ padding:10px 12px 0; }
  .desc-card__body{ padding:12px; font-size:15px; }
  .desc-card__title{ font-size:1.15rem; }
}

/* -------------------------
   БАЗА для описания
------------------------- */
.desc-card__body{
  color:#1f2d3d;
  font-size:16px;
  line-height:1.65;
}

.desc-card__body p{ margin:0 0 12px; }

.desc-card__body h3,
.desc-card__body h4{
  margin:18px 0 10px;
  line-height:1.25;
  color:#2c3e50;
}

.desc-card__body hr{
  border:none;
  height:1px;
  background:rgba(0,0,0,.08);
  margin:16px 0;
}

/* Ссылки */
.desc-card__body a{
  color:#1e88e5;
  text-decoration:none;
  border-bottom:1px dashed rgba(30,136,229,.35);
}
.desc-card__body a:hover{ border-bottom-style:solid; }

/* Списки */
.desc-card__body ul,
.desc-card__body ol{
  margin:0 0 12px 20px;
}
.desc-card__body li{ margin:6px 0; }

/* Картинки/скрины */
.desc-card__body img{
  max-width:100%;
  height:auto;
  display:block;
  margin:12px auto;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* Если внутри описания есть блоки типа full_img */
.desc-card__body .full_img{
  text-align:center;
  margin:12px 0;
}

/* -------------------------
   СПОЙЛЕРЫ: несколько популярных вариантов разметки
------------------------- */

/* Вариант 1: HTML details/summary (если где-то используется) */
.desc-card__body details{
  margin:12px 0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.desc-card__body details > summary{
  cursor:pointer;
  user-select:none;
  padding:12px 14px;
  font-weight:800;
  color:#2c3e50;
  background:linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  list-style:none;
}
.desc-card__body details > summary::-webkit-details-marker{ display:none; }
.desc-card__body details[open] > summary{
  border-bottom:1px solid rgba(0,0,0,.08);
}
.desc-card__body details > *:not(summary){
  padding:12px 14px 14px;
}

/* Вариант 2: DLE/разные движки: .spoiler, .dle_spoiler и т.п. */
.desc-card__body .spoiler,
.desc-card__body .dle_spoiler,
.desc-card__body .dle-spoiler{
  margin:12px 0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

/* Заголовки спойлера (подстраховка под разные классы/структуры) */
.desc-card__body .spoiler .title,
.desc-card__body .spoiler_title,
.desc-card__body .dle_spoiler .title,
.desc-card__body .dle-spoiler .title,
.desc-card__body .dle_spoiler_title{
  padding:12px 14px;
  font-weight:800;
  color:#2c3e50;
  background:linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* Тело спойлера */
.desc-card__body .spoiler .text,
.desc-card__body .spoiler_text,
.desc-card__body .dle_spoiler .text,
.desc-card__body .dle-spoiler .text,
.desc-card__body .dle_spoiler_text{
  padding:12px 14px 14px;
}

/* -------------------------
   КОД: inline + блоки
------------------------- */

/* inline code */
.desc-card__body :not(pre) > code{
  background:#f3f6f9;
  border:1px solid rgba(0,0,0,.08);
  padding:2px 6px;
  border-radius:8px;
  font-size:.95em;
}

/* pre code */
.desc-card__body pre,
.desc-card__body .dle_code,
.desc-card__body .dle-code,
.desc-card__body .code,
.desc-card__body .prettyprint{
  margin:12px 0;
  background:#0f172a;               /* тёмный */
  color:#e5e7eb;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  box-shadow:0 8px 22px rgba(0,0,0,.14);
}

/* если это именно pre */
.desc-card__body pre{
  padding:14px;
}

/* если движок кладёт код внутрь pre/code */
.desc-card__body pre code{
  background:transparent;
  border:none;
  padding:0;
  color:inherit;
  font-size:14px;
  line-height:1.6;
  display:block;
  white-space:pre;
}

/* Убираем “адский” перенос в коде */
.desc-card__body pre{ white-space:pre; }

/* -------------------------
   Таблицы (на всякий случай)
------------------------- */
.desc-card__body table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  margin:12px 0;
}
.desc-card__body td,
.desc-card__body th{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.desc-card__body tr:last-child td,
.desc-card__body tr:last-child th{ border-bottom:none; }

/* -------------------------
   Мобилка
------------------------- */
@media (max-width: 480px){
  .desc-card__body{ font-size:15px; }
  .desc-card__body pre code{ font-size:13px; }
}


/* Спойлеры формата: .title_spoiler + .text_spoiler */
.desc-card__body .title_spoiler{
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  display:flex;
  align-items:center;
  gap:10px;

  cursor:pointer;
  user-select:none;
}

/* ссылки внутри заголовка — визуально как обычный текст */
.desc-card__body .title_spoiler a{
  color:#2c3e50;
  text-decoration:none;
  border-bottom:none;
  font-weight:800;
}

/* чтобы кликом по ссылке не было “синих подчеркиваний/фокусов” */
.desc-card__body .title_spoiler a:focus{
  outline:none;
}

/* иконка-стрелка */
.desc-card__body .title_spoiler svg{
  display:block;
  transition:transform .18s ease;
  color:#2dc26b;
  flex:0 0 auto;
}

/* когда открыт */
.desc-card__body .title_spoiler.is-open{
  background:#f6fbf8;
  border-color:rgba(45,194,107,.35);
}

.desc-card__body .title_spoiler.is-open svg{
  transform:rotate(180deg);
}

/* тело спойлера */
.desc-card__body .text_spoiler{
  margin:0 0 12px;
  padding:12px 14px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-top:none;
  border-radius:0 0 12px 12px;
  background:#ffffff;
}

/* аккуратнее последний абзац */
.desc-card__body .text_spoiler > p:last-child{
  margin-bottom:0;
}

/* quote_block из DLE/шаблона внутри описания */
.desc-card__body .quote_block{
  margin:12px 0;
}

.desc-card__body .quote{
  background:#fff7f7;
  border:1px solid rgba(224,62,45,.22);
  border-left:4px solid #e03e2d;
  border-radius:12px;
  padding:12px 14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.desc-card__body .quote_body{
  color:#2c3e50;
}

.desc-card__body{
  line-height:1.65;
}
.desc-card__body p{
  margin:0 0 12px;
}

/* Open Sans + более “сайтный” тон */
.desc-card__body{
  font-family: "Open Sans", Arial, sans-serif;
  font-size:16px;
  line-height:1.75;
  color:#22313f;
}

/* Заголовки внутри описания */
.desc-card__body h3,
.desc-card__body h4{
  font-family: "Open Sans", Arial, sans-serif;
  font-weight:800;
  letter-spacing:.1px;
}

/* Жирный текст */
.desc-card__body b,
.desc-card__body strong{
  font-weight:800;
  color:#1d2a36;
}

/* Курсив/второстепенный текст */
.desc-card__body i,
.desc-card__body em{
  color:#546574;
}

/* Переносы из <br> — аккуратно, без “простыни” */
.desc-card__body br{
  display:block;
  margin:5px 0;
  content:none;
}

.desc-card{
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 12px 34px rgba(0,0,0,.07);
}

.desc-card__title{
  font-family: "Open Sans", Arial, sans-serif;
  font-weight:900;
}
/* =========================
   FULLSTORY MOBILE FIXES
   ========================= */

/* Prevent horizontal overflow in full story */
.full {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.full .item {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Long URLs and links inside full story */
.full a {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Center tags should not force overflow */
.full center {
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* PC card inside .item must not overflow */
.full .pc-card {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Torrent section mobile */
.torrent-styled .title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.torrent-styled .btn-main-download {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.torrent-styled .torrent-title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* Force single-column content layout */
  .full .item {
    display: block !important;
    padding: 12px !important;
  }

  /* Normalize oversized fonts */
  .full font[size] {
    font-size: inherit !important;
  }

  .full font[size="5px"],
  .full font[size="5"] {
    font-size: 18px !important;
  }

  /* Torrent section */
  .torrent-styled .title {
    flex-direction: column;
    align-items: stretch;
  }

  .torrent-styled .cont {
    font-size: 13px;
    word-break: break-all;
  }

  .torrent-styled .cont div {
    margin-bottom: 4px;
  }

  .torrent-styled .btn-main-download {
    width: 100%;
  }

  .torrent-styled .torrent-title-text {
    white-space: normal;
    word-break: break-word;
  }

  /* Magnet link SVG */
  .torrent-styled .magnet-link svg {
    width: 32px;
    height: 32px;
  }

  /* Download info boxes - normalize */
  .full .item[style*="border: 1px solid"] {
    padding: 12px !important;
    font-size: 14px;
  }

  /* PC card grid: poster + info */
  .pc-main {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .pc-leftTop {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .pc-posterFrame {
    max-height: 350px;
  }

  /* Desc card compact */
  .desc-card__head {
    padding: 12px;
  }

  .desc-card__body {
    padding: 12px;
    font-size: 15px;
  }

  /* Accordion */
  .empireg-acc .acc summary {
    font-size: 14px;
    padding: 12px;
  }

  .empireg-acc .acc__body {
    padding: 12px;
    font-size: 14px;
  }

  /* Download heading */
  .full h2 {
    font-size: 18px;
    line-height: 1.3;
    word-break: break-word;
  }

  /* DL card (Yandex) */
  .dl-card {
    margin: 10px 0;
  }

  .dl-card__link {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Single column poster layout on small phones */
  .pc-leftTop {
    grid-template-columns: 1fr !important;
  }

  .pc-posterFrame {
    max-width: 250px;
    margin: 0 auto;
  }

  .pc-col {
    padding: 8px !important;
  }

  /* Accordion compact */
  .empireg-acc .acc summary b {
    font-size: 13px;
  }

  /* Upload tags wrap properly */
  .upload-tags {
    gap: 6px;
  }

  .upload-tag {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Rating bar compact */
  .emp-rating__bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Info items */
  .pc-infoItem {
    padding: 8px;
    border-radius: 8px;
  }

  .pc-infoLabel {
    white-space: normal;
    font-size: 12px;
  }

  .pc-infoValue {
    font-size: 13px;
    word-break: break-word;
  }

  /* Full story desc */
  .desc-card__title {
    font-size: 1rem;
  }

  /* Download spoiler titles */
  .download-spoiler-title {
    padding: 12px;
  }

  .download-spoiler-text {
    font-size: 14px;
  }
}

/* H1 в шапке карточки */
.desc-card__title--h1{
  font-size: 1.35rem;
}

/* Шапка с действиями справа */
.desc-card__head--with-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.desc-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.desc-card__action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:#f3f6f9;
  border:1px solid rgba(0,0,0,.06);
  color:#2c3e50;
  cursor:pointer;
}
.desc-card__action:hover{
  background:#eef5f1;
  border-color: rgba(45,194,107,.25);
  color:#1d2a36;
}

/* Убираем лишний верхний отступ в CTA блоке */
.desc-card__body--tight-top{
  padding-top:0;
}
.cta-center{
  text-align:center;
}

/* Светлый блок постера (вместо тёмного оверлея) */
.poster-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px;
}
.poster-card__link{
  display:block;
  text-align:center;
}
.poster-card__img{
  width: 445px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  display:inline-block;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.poster-card__rating{
  display:flex;
  justify-content:center;
  margin-top: 12px;
}

/* Сетка скриншотов */
.screen-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.screen-grid__item{
  display:block;
  max-width:260px;
  width: calc(33.333% - 10px);
  min-width: 160px;
}
.screen-grid__img{
  width:100%;
  height:auto;
  border-radius: 12px;
  display:block;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Строка в инфо */
.f_info__line{
  margin-top:6px;
}

/* Адаптив */
@media (max-width: 768px){
  .screen-grid__item{
    width: calc(50% - 10px);
  }
}
@media (max-width: 480px){
  .desc-card__head--with-actions{
    align-items:flex-start;
    flex-direction:column;
  }
  .screen-grid__item{
    width: 100%;
    max-width: 320px;
  }
}
/* ═══════════════════════════════════════════════
   18+ AGE GATE FOR FULL STORY
   ═══════════════════════════════════════════════ */

/* Применяем blur СРАЗУ для всех 18+ изображений (без transition чтобы не было flash) */
.pc-card--adult .pc-card__poster-image,
.pc-card--adult .pc-posterImg,
.pc-card--adult .pc-poster {
  filter: blur(20px) brightness(.72);
  transform: scale(1.06);
}

/* Убираем blur только когда ageGate скрыт */
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ .pc-poster-link .pc-poster,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ .pc-poster-link .pc-posterImg,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ .pc-card__poster-image,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ * .pc-card__poster-image,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ .pc-posterImg,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ * .pc-posterImg,
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ * .pc-poster,
.pc-card--adult.age-confirmed .pc-poster,
.pc-card--adult.age-confirmed .pc-posterImg,
.pc-card--adult.age-confirmed .pc-card__poster-image {
  filter: none;
  transform: scale(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Pointer events: block click on poster when adult */
.pc-card--adult .pc-poster-link { pointer-events: none; }
.pc-card--adult .pc-ageGate[aria-hidden="true"] ~ .pc-poster-link,
.pc-card--adult.age-confirmed .pc-poster-link { pointer-events: auto; }

/* Age gate для полной новости */
.pc-ageGate {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 12px;
}

.pc-ageGate[aria-hidden="true"] {
  display: none;
  pointer-events: none;
}

.pc-ageGate__box {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  max-width: 400px;
}

.pc-ageGate__title {
  display: inline-block;
  padding: 12px 24px;
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  font-size: 32px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.pc-ageGate__text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.pc-ageGate__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.pc-ageGate__btn {
  padding: 14px 32px;
  border-radius: 10px;
  border: 2px solid;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  min-width: 120px;
}

.pc-ageGate__btn--yes {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.pc-ageGate__btn--yes:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pc-ageGate__btn--no {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.pc-ageGate__btn--no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: translateY(-2px);
}
