/* Common torrent controls for file lists, catalog previews and game landing pages. */
:is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden]) {
  --button-color:#099b4d;
  box-sizing:border-box;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  align-self:center;
  gap:7px;
  height:40px;
  min-height:40px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:7px;
  background:#099b4d;
  color:#fff;
  box-shadow:none;
  font:600 11px/1.4 Onest,Arial,sans-serif;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
:is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden])::after {
  content:"";
  display:block;
  position:static;
  order:-1;
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin:0;
  background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cmask%20id%3D%22cut%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M8%206v13m0-6c0%205%207%205%207%200V6m0%207c0%203%202%203%203%203%22%20transform%3D%22rotate(-16%2012%2012)%22%2F%3E%3C%2Fmask%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20fill%3D%22white%22%20mask%3D%22url(%23cut)%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  transform:none;
  pointer-events:none;
}
:is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden]) > :is(img,svg,.ce26-torrent) {display:none}
:is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden]) > span:not(.ce26-torrent) {color:inherit;font:inherit}
#ce-catalog .cec-table-actions a.is-torrent {min-width:88px}
@media(min-width:721px) and (max-width:1050px) {
  :is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden]) {font-size:12px}
}
@media(max-width:720px) {
  :is(body,#ce-extra) a:is(
  .ce-item__button--torrent:not([title^="Подробнее"]),
  .cec-button--torrent,
  .cec-table-actions .is-torrent,
  .so-btn--torrent,
  .ce-game-torrent.ce-game-torrent,
  .ce-fallback-list .ce26-btn--green
)[href]:not([hidden]) {height:44px;min-height:44px}
}
body.ce-static-page #ce-static .ces-prose a.ce-game-torrent[href] {color:#fff!important;text-decoration:none!important}

a.ce-game-torrent.ce-game-torrent[href]:not([hidden]) {display:inline-flex}

/* Each visible download action takes an equal share of its card's row. */
:is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) {
  container-type:inline-size;
  align-items:center;
  gap:7px;
}
:is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button,.cec-button)[href]:not([hidden]) {
  box-sizing:border-box;
  flex:1 1 0%;
  min-width:0;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:40px;
  min-height:40px;
  padding:6px 5px;
  font:600 11px/1.35 Onest,Arial,sans-serif;
  text-align:center;
  white-space:nowrap;
}
:is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button,.cec-button)[href] > span {
  font:inherit;
  white-space:nowrap;
}
:is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button--site,.cec-button--server) > svg {
  width:17px;
  height:17px;
  flex:0 0 17px;
}
@media(max-width:720px) {
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button,.cec-button)[href]:not([hidden]) {height:44px;min-height:44px}
}
@container(max-width:245px) {
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button,.cec-button)[href]:not([hidden]) {padding-inline:3px;gap:4px}
}
@container(max-width:217px) {
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button,.cec-button)[href]:not([hidden]) {padding-inline:2px;gap:3px;font-size:10px}
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button--site,.cec-button--server) > svg,
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button--torrent,.cec-button--torrent)[href]:not([hidden])::after {width:14px;height:14px;flex-basis:14px}
}
@container(max-width:245px) {
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button--site,.cec-button--server)[aria-label="Скачать основную сборку с главной"][href]:not([hidden]) {
    gap:2px;
    font-size:10px;
    letter-spacing:-.25px;
  }
  :is(body,#ce-extra) :is(.ce-item__actions,.cec-card .cec-actions) > a:is(.ce-item__button--site,.cec-button--server)[aria-label="Скачать основную сборку с главной"] > svg {width:12px;height:12px;flex-basis:12px}
}
