/* Макет «duel» (Бренд → Вигляд сайту → Макет): меню категорий в шапке вместо бокового, содержимое по центру,
   высокие карточки с названием внизу по центру и плашкой слева сверху. Подключается после site.css.
   Боковое меню остаётся выезжающим меню на телефоне. Цвета — из бренда (--primary, --accent, --bg). */
.theme-duel {
  --radius: 8px;
  --topbar-h: 64px;
  --wrap: 1240px;
  --card-meta: rgba(255, 255, 255, .62);
}
body.theme-duel {
  background:
    radial-gradient(1100px 520px at 50% -160px, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- шапка ---------- */
.theme-duel .topbar { gap: 8px; padding: 0 22px; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); border-bottom: 0; }
.theme-duel .topbar-logo { margin-right: 26px; font-size: 30px; letter-spacing: -.03em; }
.theme-duel .tabs { gap: 2px; padding: 0; border: 0; }
.theme-duel .tab { height: 40px; padding: 0 12px; gap: 7px; border-radius: 8px; color: #b9bedb; font-weight: 700; font-size: 15px; }
.theme-duel .tab .ic { width: 18px; height: 18px; color: #b9bedb; }
.theme-duel .tab:hover { background: transparent; color: #fff; }
.theme-duel .tab:hover .ic { color: #fff; }
.theme-duel .tab.on { background: color-mix(in srgb, var(--primary) 16%, transparent); color: #fff; }
.theme-duel .tab.on .ic { color: var(--primary); }
.theme-duel .search input { width: 200px; height: 42px; border-radius: 8px; border-color: transparent; background: var(--panel); }
.theme-duel .search .icon-btn { border-color: transparent; }
.theme-duel .topbar > .btn-primary { height: 42px; padding: 0 18px; }

.top-lang { position: relative; }
.top-lang summary { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 8px; background: var(--panel);
  color: #dfe2f2; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.top-lang summary::-webkit-details-marker { display: none; }
.top-lang summary:hover { background: var(--panel-2); }
.top-lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 150px; padding: 6px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.top-lang-list a { padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #cfd3e6; }
.top-lang-list a:hover { background: var(--panel-2); color: #fff; }
.top-lang-list a.on { color: var(--primary); font-weight: 700; }

/* ---------- кнопки ---------- */
.theme-duel .btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 82%, #fff 18%), var(--primary)); }
.theme-duel .btn-lg { height: 50px; padding: 0 30px; font-size: 17px; text-transform: none; letter-spacing: 0; }

/* ---------- содержимое по центру ---------- */
.theme-duel .content { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding-top: 24px; }
.theme-duel .subscribe { width: calc(100% - 48px); max-width: var(--wrap); margin: 44px auto 0; }
.theme-duel .footer { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; }
.theme-duel .content .subscribe { width: 100%; }          /* подписка внутри содержимого (главная, /subscribe/) */
.theme-duel .content .subscribe-home { margin: 44px 0 0; }

/* ---------- заголовки блоков: по центру, стрелки справа ---------- */
.theme-duel .block { margin-top: 40px; }
.theme-duel .block-head { position: relative; justify-content: center; min-height: 34px; margin-bottom: 18px; }
.theme-duel .block-head h2 { font-size: 26px; font-weight: 900; text-transform: none; letter-spacing: -.01em; text-align: center; }
.theme-duel .block-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.theme-duel .show-all { font-size: 14px; font-weight: 700; color: #b9bedb; }
.theme-duel .row-btn { border-color: transparent; background: var(--panel); }

/* ---------- карточки ---------- */
.theme-duel .row { --per: 7; justify-content: safe center; }   /* мало карток — ряд по центру */
.theme-duel .card { border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.theme-duel .card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.theme-duel .card:hover img { transform: none; }
.theme-duel .card::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 9, 24, .92) 100%); }
.theme-duel .card-body { padding: 12px 10px 10px; gap: 3px; align-items: center; }
.theme-duel .card-title { font-size: 19px; font-weight: 800; line-height: 1.1; text-transform: none; letter-spacing: -.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .7); -webkit-line-clamp: 3; }
.theme-duel .card-meta { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--card-meta); }
.theme-duel .flag { top: 9px; left: 9px; right: auto; padding: 3px 8px; border-radius: 6px; background: rgba(9, 10, 28, .6);
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
.theme-duel .flag-new { color: #fff; background: color-mix(in srgb, var(--primary) 70%, transparent); }
.theme-duel .flag-lang { left: auto; right: 9px; color: #fff; }
.theme-duel .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

/* ---------- слайдер, лобби, бегущая строка ---------- */
.theme-duel .hero { border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.theme-duel .slide h2 { text-transform: none; letter-spacing: -.02em; }
.theme-duel .slide-cat { border-radius: 6px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.theme-duel .lobby { justify-content: center; gap: 10px; }
.theme-duel .lobby-ic { border-radius: 14px; border-color: transparent; }
.theme-duel .ticker { border-radius: 10px; }
.theme-duel .ticker-label { color: #07140e; }

/* ---------- заголовки страниц, подписка, подвал ---------- */
.theme-duel .page-head { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }
.theme-duel .page-head h1 { text-transform: none; font-size: 32px; letter-spacing: -.01em; }
.theme-duel .page-ic { border-color: transparent; background: color-mix(in srgb, var(--primary) 18%, var(--panel)); }
.theme-duel .subscribe { border-color: transparent;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 34%, var(--panel)), var(--panel) 65%); }
.theme-duel .subscribe h2, .theme-duel .subscribe-page h1 { text-transform: none; letter-spacing: -.01em; }
.theme-duel .footer { text-align: center; }
.theme-duel .footer-cats, .theme-duel .footer-links, .theme-duel .disclaimer { justify-content: center; }
.theme-duel .footer-links a { border-color: transparent; background: var(--panel); }
.theme-duel .lang-pick { justify-content: center; }
.theme-duel .unsub { border-color: transparent; }

/* ---------- компьютер: без бокового меню ---------- */
@media (min-width: 901px) {
  .theme-duel .sidebar, .theme-duel .scrim, .theme-duel .topbar .burger { display: none; }
  .theme-duel .topbar { padding-left: 28px; }
}
@media (max-width: 1500px) { .theme-duel .row { --per: 6; } }
@media (max-width: 1200px) {
  .theme-duel .row { --per: 5; }
  .theme-duel .tabs { display: flex; }
  .theme-duel .search input { width: 150px; }
}
@media (max-width: 1060px) {
  .theme-duel .tab .ic { display: none; }
  .theme-duel .tab { padding: 0 9px; font-size: 14px; }
  .theme-duel .search input { display: none; }
  .theme-duel .topbar-logo { margin-right: 10px; }
}
@media (max-width: 900px) {
  .theme-duel { --topbar-h: 60px; }
  .theme-duel .tabs { display: none; }
  .theme-duel .top-lang { display: none; }      /* на телефоне языки — в выезжающем меню */
  .theme-duel .topbar { padding: 0 12px; }
  .theme-duel .topbar-logo { font-size: 24px; }
  .theme-duel .topbar > .btn-primary .ic { display: none; }
  .theme-duel .content { padding-top: 14px; }
  .theme-duel .row { --per: 2.4; gap: 10px; grid-auto-columns: calc((100% - 2 * 10px) / var(--per)); }
  .theme-duel .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .theme-duel .block { margin-top: 30px; }
  .theme-duel .block-head { justify-content: space-between; }
  .theme-duel .block-head h2 { font-size: 21px; text-align: left; }
  .theme-duel .block-nav { position: static; transform: none; }
  .theme-duel .card-title { font-size: 15px; }
  .theme-duel .lobby { justify-content: flex-start; }
  .theme-duel .subscribe { width: calc(100% - 32px); margin-top: 32px; }
}
