@font-face {
  font-family: "Golos Text";
  src: url("golos-text-variable.woff2") format("woff2"), url("golos-text-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

.weekly-news {
  container-type: inline-size;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: #151c28;
  font-family: "Golos Text", system-ui, sans-serif;
}

.weekly-news h2 {
  margin: 0 0 13px;
  color: inherit;
  font-size: clamp(1.15rem, 3.1cqw, 1.7rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-align: left;
}

.weekly-news .weekly-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.weekly-news-grid > li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.weekly-news a.weekly-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55%;
  align-items: center;
  width: 100%;
  min-height: 108px;
  overflow: hidden;
  border-radius: 6px;
  background: #ebeffa;
  color: inherit;
  text-decoration: none;
}

.weekly-news-grid > li:nth-child(even) .weekly-news-card {
  background: #f0ece3;
}

.weekly-news-card:focus-visible {
  outline: 3px solid #294acf;
  outline-offset: 2px;
}

.weekly-news-copy {
  min-width: 0;
  padding: 10px 6px 10px 13px;
  overflow-wrap: anywhere;
}

.weekly-news-kind,
.weekly-news-name {
  display: block;
}

.weekly-news-kind {
  margin-bottom: 3px;
  color: #40516b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.weekly-news-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.24;
}

.weekly-news-card:hover .weekly-news-name {
  text-decoration: underline;
}

.weekly-news-card img.weekly-news-image {
  align-self: stretch;
  display: block;
  width: 100%;
  height: 0;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

@container (max-width: 700px) {
  .weekly-news a.weekly-news-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    min-height: 156px;
  }

  .weekly-news-copy {
    padding: 3px 8px 9px;
  }

  .weekly-news-card img.weekly-news-image {
    order: -1;
    justify-self: end;
    width: 55%;
    height: 68px;
    min-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  }
}

/* «Похожие игры» в карточке Nintendo. */
#casing .s-nintendo-similar {
  margin-block: 24px;
}

#casing .s-nintendo-similar a.weekly-news-card {
  color: inherit;
  text-decoration: none;
}

.s-nintendo-similar .s-similar-price {
  display: block;
  margin-top: 5px;
  color: #40516b;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.s-nintendo-similar img.weekly-news-image[hidden] {
  display: none;
}

.s-nintendo-similar a.weekly-news-card.s-similar-no-image {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
}

/* === Дайджест «Новые игры в App Store»: плашки в стиле ДЕЙСТВУЮЩЕЙ карточки —
   светлый «вариант 01» из ios-card.css (тёмно-синий ink, белая панель цены, голубая
   кнопка с клипом-градиентом и логотипом App Store, золотая звезда, сепаратор под
   identity). Скоуп .text — обёртка тела новости; карточки weekly-news.css не грузят.
   Переменные заданы на .text: на новостях нет #casing.sales-material-page. === */
.text { --ios-card-bg: #f3f8ff; --ios-card-tint: #e5f0ff; --ios-card-line: #d4e4f8;
  --ios-card-ink: #314f76; --ios-card-muted: #516786; --ios-card-accent: #345e9f; --ios-card-radius: 19px; }
.text .s-material-card { display: grid; grid-template-columns: minmax(0, 1.3275fr) minmax(0, .7125fr);
  gap: clamp(16px, 2.4vw, 30px); align-items: start; row-gap: 0;
  margin: 0 0 24px; border-radius: var(--ios-card-radius); background: #fff; }
.text .s-material-card > div:first-child { display: contents; }
.text .s-material-card .s-material-identity { grid-area: 1 / 1; }
.text .s-material-card .s-facts { grid-area: 2 / 1; }
.text .s-material-card .s-material-price-panel { grid-area: 1 / 2 / 3; }
.text .s-material-card .s-material-about { grid-area: 3 / 1 / 4 / -1; }
.text .s-material-identity { display: flex; align-items: center; gap: 16px; padding-bottom: 11px; }
.text .s-material-identity .s-material-icon { flex: 0 0 88px; width: 88px; height: 88px; overflow: hidden; box-shadow: 0 4px 16px #345e9f26; }
.text .s-material-identity .s-material-icon img { width: 100%; height: 100%; }
.text .s-material-identity :is(.s-material-icon, .s-material-icon img) { border-radius: var(--ios-card-radius); }
.text .s-material-identity h2 { margin: 0 0 4px; text-align: left; font: 700 1.8rem/1.05 system-ui, sans-serif; letter-spacing: -.04em; color: var(--ios-card-ink); overflow-wrap: anywhere; }
.text .s-material-identity h2 a { color: inherit; text-decoration: none; }
.text .s-material-identity h2 a:hover { text-decoration: underline; text-underline-offset: 2px; }
.text .s-material-identity .s-rating-line { margin: 0; color: var(--ios-card-ink); font: 720 .87rem/1.5 "Segoe UI", system-ui, sans-serif; }
.text .s-star { color: #e8a020; }
.text .s-muted { color: var(--ios-card-muted); font-weight: 400; }
/* Бейдж места витрины Nintendo в дайджесте новых игр Switch — палитра sales.css,
   классы те же, что на карточке (rankBadge); до NT-дайджеста на новостях не встречался. */
.text .s-rankbadge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; line-height: 16px;
  font-weight: 600; background: #eef1f4; color: #5b6b7c; margin: 0 6px 2px 0; vertical-align: 1px; white-space: nowrap; }
.text .s-rankbadge.s-rank-top { background: #e6f2e6; color: #1e6b2a; }
.text .s-facts { display: grid; gap: 5px; margin: 16px 0 0; font: .845rem/1.38 "Segoe UI", system-ui, sans-serif; }
.text .s-facts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.text .s-facts dt { color: var(--ios-card-muted); }
.text .s-facts dd { margin: 0; min-width: 0; color: var(--ios-card-ink); overflow-wrap: anywhere; }
.text .s-facts a { color: var(--ios-card-accent); text-decoration: none; }
.text .s-facts a:hover { text-decoration: none; }
.text .s-material-about { margin-top: 21px; }
.text .s-material-about h2 { margin: 0; color: var(--ios-card-ink); font: 700 1.15rem/1.24 "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.text .s-material-about p { margin: 6px 0 0; color: inherit; line-height: 1.5; white-space: pre-line; }
.text .s-material-price-panel { min-width: 0; padding: 15px; background: #fff; border: 1px solid var(--ios-card-line); border-radius: var(--ios-card-radius); }
.text .s-material-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.text .s-material-price strong { color: var(--ios-card-accent); font: 700 1.5rem/1.15 system-ui, sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.text .s-material-price del { color: var(--ios-card-muted); }
.text .s-material-off { background: var(--ios-card-tint); color: var(--ios-card-accent); border-radius: 7px; padding: 3px 7px; font-weight: 700; white-space: nowrap; }
.text .s-material-buy:is(:link, :visited) { --store-button-top: #23c7f5; --store-button-bottom: #155dda;
  position: relative; isolation: isolate; display: grid; grid-template-columns: min(6em, 100%); align-items: center;
  box-sizing: border-box; width: 100%; min-height: 52px; max-width: 100%; padding: 8px 64px 8px 12px; margin-top: 8px;
  overflow: hidden; border: 1px solid var(--ios-card-line); border-radius: 12px; background: var(--ios-card-tint);
  color: var(--ios-card-accent); font: 700 .86rem/1.25 "Segoe UI", system-ui, sans-serif; text-align: left; text-decoration: none; }
.text .s-material-buy::before, .text .s-material-buy::after { position: absolute; pointer-events: none; content: ""; }
.text .s-material-buy::before { z-index: -1; inset: 0 0 0 auto; width: 67px; background: linear-gradient(135deg, var(--store-button-top), var(--store-button-bottom)); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.text .s-material-buy::after { box-sizing: border-box; top: 50%; right: 10px; width: 35px; height: 35px; transform: translateY(-50%); padding: 2px; border: 3px double #fff; border-radius: 50%; background: url("/sales-assets/app-store-mark.png") center / 128% auto no-repeat content-box; filter: grayscale(1) brightness(.67) contrast(10); mix-blend-mode: screen; }
.text .s-material-buy:is(:hover, :focus-visible) { --store-button-top: #34d8ff; --store-button-bottom: #1d68ee; border-color: #94beff; background: #d4e7ff; color: #244e8c; box-shadow: 0 2px 7px #155dda33; text-decoration: none; }
.text .s-material-preview { margin: 0 0 24px; border-radius: var(--ios-card-radius); background: #fff; }
.text .s-material-preview h2, .text .s-material-gallery h2 { margin: 0; color: var(--ios-card-ink); font: 700 1.15rem/1.24 "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.text .s-material-preview video { display: block; width: 100%; border-radius: 10px; margin-top: 10px; background: var(--ios-card-tint); }
.text .s-material-preview p { margin: 6px 0 0; color: var(--ios-card-muted); font-size: .75rem; }
.text .s-material-gallery { margin: 0 0 24px; border-radius: var(--ios-card-radius); background: #fff; }

.text .s-material-gallery .s-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.text .s-gallery-grid a { display: block; min-width: 0; }
.text .s-gallery-grid a, .text .s-gallery-grid img { border-radius: 5px; }
.text .s-gallery-grid img { display: block; width: 100%; height: auto; }
.text .s-gallery-grid > .s-gallery-more { display: none; }
@media (width > 620px) {
  .text .s-material-gallery .s-gallery-compact { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(44px, .42fr); }
  .text .s-gallery-compact > a:nth-child(n+4):not(.s-gallery-more) { display: none; }
  .text .s-gallery-grid > .s-gallery-more { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 44px; border-radius: 10px; background: var(--ios-card-tint); color: var(--ios-card-accent); font-size: clamp(1rem, 2.4vw, 1.75rem); font-weight: 700; text-decoration: none; }
  .text .s-gallery-more > .s-gallery-more-image { position: absolute; z-index: -1; inset: 0; display: block; opacity: .58; }
  .text .s-gallery-more > .s-gallery-more-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
  .text .s-gallery-more-label { padding: 2px 8px; border-radius: 999px; background: var(--ios-card-bg); }
  .text .s-gallery-grid > .s-gallery-more:is(:hover, :focus-visible) { color: var(--ios-card-accent); background: #d6e6ff; }
}
@media (max-width: 620px) {
  .text .s-material-gallery .s-gallery-grid { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; padding-bottom: 5px; }
}
@media (max-width: 620px) {
  .text .s-material-card { grid-template-columns: minmax(0, 1fr); }
  .text .s-material-card .s-material-price-panel { grid-area: 3 / 1; margin-top: 16px; }
  .text .s-material-card .s-material-about { grid-area: 4 / 1; }
  .text .s-material-identity .s-material-icon { width: 60px; height: 60px; flex-basis: 60px; }
}

/* Разделение между играми дайджеста — вариант 7 (владелец 27.11): линия-градиент
   с растворяющимися краями, отбивка 24px с каждой стороны. */
.text .s-material-sep { height: 48px; display: flex; align-items: center; }
.text .s-material-sep::before { content: ""; display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--ios-card-line) 18%, var(--ios-card-line) 82%, transparent); }

/* Дайджест новых игр Nintendo Switch (28.11, владелец: «стилизовано как в
   /apps/nintendo/?kind=game»): тоны nt-card.css. Чипы s-kind повторяют sales.css
   каталога (sales.css на новостных страницах не подключён), цена чёрная вместо
   синей, кнопка eShop — красный градиент nt-card со знаком Switch в кольце,
   жанры в фактах — акцент nt-card. */
/* Дайджест скидок App Store (30.11): карточки на базовых .text .s-material-* тонах;
   чипы типа/скидки в rating-line — тот же узор, что .s-nt-digest (sales.css на
   новостных страницах не подключён); подзаголовок раздела «Скидки на программы». */
.text .s-ios-digest .s-rating-line .s-kind { display: inline-block; margin: 0 6px 2px 0;
  padding: 1px 8px; border: 1px solid #ddd; border-radius: 999px;
  font: 12px/16px Arial, sans-serif; color: #666; white-space: nowrap; }
.text .s-digest-section { margin: 28px 0 10px; color: var(--ios-card-ink);
  font: 700 1.3rem/1.2 system-ui, sans-serif; letter-spacing: -.03em; }
.text .s-digest-intro { margin: 0 0 18px; }
/* Видео дайджестов (news-preview.js v3): постер ждёт клика — видимая кнопка play;
   буферизация начинается сама, когда блок попал в кадр (IntersectionObserver) */
.text .s-material-video-frame.s-news-preview-wait { cursor: pointer; }
.text .s-material-video-frame.s-news-preview-wait:hover video { filter: brightness(1.06); }
.text .s-material-video-frame.s-news-preview-wait::after {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(48px, 7vw, 72px); height: clamp(48px, 7vw, 72px);
  border-radius: 50%;
  background: rgba(21, 93, 218, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 52% auto no-repeat;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  pointer-events: none;
}

.text .s-nt-digest { --nt-digest-accent: #b02a37; }
.text .s-nt-digest .s-rating-line .s-kind { display: inline-block; margin: 0 6px 2px 0;
  padding: 1px 8px; border: 1px solid #ddd; border-radius: 999px;
  font: 12px/16px Arial, sans-serif; color: #666; white-space: nowrap; }
.text .s-nt-digest .s-material-price strong { color: #000; }
.text .s-nt-digest .s-facts a { color: var(--nt-digest-accent); }
.text .s-nt-digest .s-material-buy:is(:link, :visited) {
  --store-button-top: #ff5a4e;
  --store-button-bottom: #d5101f;
  grid-template-columns: min(8em, 100%);
  border-color: #f2d4d7;
  background: #fdecec;
  color: #b02a37;
}
.text .s-nt-digest .s-material-buy::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14.176 24h3.674c3.376 0 6.15-2.774 6.15-6.15V6.15C24 2.775 21.226 0 17.85 0H14.1c-.074 0-.15.074-.15.15v23.7c-.001.076.075.15.226.15zm4.574-13.199c1.351 0 2.399 1.125 2.399 2.398 0 1.352-1.125 2.4-2.399 2.4-1.35 0-2.4-1.049-2.4-2.4-.075-1.349 1.05-2.398 2.4-2.398zM11.4 0H6.15C2.775 0 0 2.775 0 6.15v11.7C0 21.226 2.775 24 6.15 24h5.25c.074 0 .15-.074.15-.149V.15c.001-.076-.075-.15-.15-.15zM9.676 22.051H6.15c-2.326 0-4.201-1.875-4.201-4.201V6.15c0-2.326 1.875-4.201 4.201-4.201H9.6l.076 20.102zM3.75 7.199c0 1.275.975 2.25 2.25 2.25s2.25-.975 2.25-2.25c0-1.273-.975-2.25-2.25-2.25s-2.25.977-2.25 2.25z'/%3E%3C/svg%3E") center / 112% auto no-repeat content-box;
  filter: none;
  mix-blend-mode: normal;
}
.text .s-nt-digest .s-material-buy:is(:hover, :focus-visible) {
  --store-button-top: #ff7368;
  --store-button-bottom: #e81424;
  border-color: #ffb1ae;
  background: #ffdcdc;
  color: #96202c;
  box-shadow: 0 2px 7px #d5101f33;
}
/* Видео дайджеста — широкоформатный фрейм 16:9 с постером-кадром (владелец 28.11:
   «превью в соотношении фулHD или близкого»), тот же узор, что s-material-preview-frame
   на iOS-карточке (app-material.css): горизонтальные заполняют кадр, вертикальные —
   узкая колонка по центру. Правило перекрывает .text .s-material-preview video
   (та же specificity, идёт позже в файле). */
.text .s-material-preview .s-material-video-frame {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: #20242b;
}
.text .s-material-preview .s-material-video-frame video {
  position: absolute;
  inset: 0;
  margin: auto;           /* детерминированный центр: грид-трек auto ломает проценты высоты */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  background: transparent;
}
/* Мелкая строка в панели цены — как s-material-check на карточках (владелец 28.11:
   «в карточках под ссылкой текст в s-material-check, а в новости s-muted»); скоуп .text,
   т.к. app-material.css на новостных страницах не подключён. */
.text .s-material-price-panel .s-material-check {
  margin: 6px 0 0;
  color: var(--ios-card-muted);
  font-size: .75rem;
  line-height: 1.36;
  text-align: left;
}
