/* Корзина, настройки доступности рекламы канала, адаптивные правила. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Cart */
.card-buy .cart-added-label { display: none; align-items: center; justify-content: center; gap: 8px; }
.card-buy .cart-added-label img { width: 18px; height: 18px; }
.card-buy.in-cart { left: 12px; width: 258px; background: #2EB822 !important; border-color: #2EB822 !important; color: #fff; cursor: default; }
.card-buy.is-pending { opacity: 1; color: #fff; background: var(--blue); border-color: var(--blue); cursor: default; }
.card-buy.in-cart { opacity: 1; }
.card-buy.in-cart .catalog-buy-label,
.card-buy.in-cart .hot-buy-label { display: none !important; }
.card-buy.in-cart .cart-added-label { display: flex; }
.card-cart-remove {
  position: absolute;
  z-index: 11;
  left: 278px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #939393;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .24s ease, visibility 0s linear 0s, transform .32s cubic-bezier(.22,1,.36,1), background-color .2s ease, box-shadow .2s ease;
}
.card-cart-remove:disabled,
.cart-remove:disabled { cursor: default; }
.card-cart-remove.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity .18s ease, visibility 0s linear .18s, transform .24s cubic-bezier(.22,1,.36,1), background-color .2s ease, box-shadow .2s ease;
}
.card-cart-remove::before,
.card-cart-remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: #939393;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.card-cart-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.card-cart-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.card-cart-remove:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #E62929;
}
.card-cart-remove:hover::before,
.card-cart-remove:hover::after {
  background: #E62929;
}
body.hot .card-cart-remove { bottom: 46px; }
.channel-price-card .card-cart-remove { left: 254px; bottom: 12px; }
.channel-hot-offer-card {
  position: relative;
  width: 314px;
  height: 205px;
  margin-top: 0;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: none;
}
.channel-hot-offer-card .static-price {
  position: static;
  height: 58px;
  padding-top: 20px;
  color: #fff;
}
.channel-hot-meta {
  margin: 8px 16px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  font: 400 14px/18px var(--font);
}
.channel-hot-meta span,
.channel-hot-meta b {
  min-height: 30px;
  padding: 6px 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #27272F;
  border-radius: 6px;
}
.channel-hot-meta b {
  background: linear-gradient(90deg, #FF9496 0%, #FF0000 100%);
  font-weight: 400;
}
.channel-hot-offer-card .detail-buy {
  left: 12px;
  right: auto;
  bottom: 46px;
  width: 290px;
  margin: 0;
  transform: none;
  background: #FF7C02;
  border-color: #FF7C02;
}
.channel-hot-offer-card .hot-buy-label {
  display: inline;
}
.channel-hot-offer-card .detail-buy.in-cart {
  left: 12px;
  width: 234px;
  transform: none;
}
.channel-hot-offer-card .card-cart-remove {
  left: 254px;
  bottom: 46px;
}
.channel-hot-offer-card .card-countdown {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FF7C02;
  background: rgba(255,124,2,.12);
  border-radius: 10px;
  font: 500 14px/18px var(--font);
}
.profile-content-cart { width: 1046px; min-height: 0; padding: 0; background: transparent; border: 0; }
.cart-layout { width: 1046px; display: grid; grid-template-columns: 692px 314px; gap: 40px; align-items: start; }
.cart-list { border: 1px solid #2F2F37; border-radius: 16px; background: #1B1B23; }
.cart-list { width: 692px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-list-head { height: 44px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.75); font: 400 14px/18px var(--font); }
.cart-list-head label, .cart-check { display: flex; align-items: center; gap: 10px; }
.cart-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1E55F9; }
.cart-item { min-height: 148px; padding: 16px; display: grid; grid-template-columns: 24px 64px minmax(0, 1fr) minmax(214px, 246px); grid-template-areas: "check avatar info side"; gap: 12px; align-items: start; border: 1px solid #2F2F37; border-radius: 12px; background: #27272F; }
.cart-item.hot { border-color: rgba(255,124,2,.45); box-shadow: inset 0 0 0 1px rgba(255,124,2,.12); }
.cart-item.unavailable { opacity: .55; }
.cart-check { grid-area: check; padding-top: 6px; }
.cart-avatar { width: 64px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: #1E55F9; color: #fff; font: 600 22px/1 var(--font); }
.cart-avatar { grid-area: avatar; }
.cart-info { grid-area: info; min-width: 0; }
.cart-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { margin: 0; color: #fff; font: 600 18px/22px var(--font); }
.cart-info p { margin: 6px 0 0; color: rgba(255,255,255,.6); font: 400 14px/18px var(--font); }
.cart-hot-timer { width: fit-content; margin-top: 8px; padding: 0 12px; height: 28px; display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; color: #FF7C02; background: rgba(255,124,2,.12); font: 500 13px/16px var(--font); }
.cart-placement-controls { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: start; }
.cart-placement-picker { display: grid; grid-template-columns: 148px 110px; gap: 4px; align-items: start; min-width: 0; }
.cart-placement-picker .hot-date-picker .hot-picker-panel { max-width: min(260px, calc(100vw - 32px)); }
.cart-placement-picker .hot-date-calendar { max-width: 100%; overflow-x: auto; }
.cart-placement-message { grid-column: 1 / -1; margin: 0 !important; color: #FF7C02 !important; font-size: 12px !important; line-height: 15px !important; }
.cart-creative { width: 136px; min-width: 0; display: grid; gap: 4px; color: rgba(255,255,255,.45); font: 400 12px/15px var(--font); }
.cart-creative select { width: 100%; min-width: 0; }
.cart-item-side { grid-area: side; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; grid-template-areas: "condition price remove" "currency currency remove"; gap: 10px 12px; align-items: center; }
.cart-condition { grid-area: condition; min-width: 0; }
.cart-condition-fixed, .cart-condition-menu > button, .cart-currency-static { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: #27272F; font: 400 14px/18px var(--font); }
.cart-condition-menu { position: relative; }
.cart-condition-menu > button { width: 100%; min-width: 0; justify-content: space-between; }
.cart-condition-menu > button span { width: 8px; height: 8px; border-right: 1.5px solid rgba(255,255,255,.55); border-bottom: 1.5px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.cart-condition-menu.open > button { border-radius: 8px 8px 0 0; }
.cart-condition-menu.open > button span { transform: rotate(225deg); }
.cart-condition-menu > div { position: absolute; z-index: 30; left: 0; top: 40px; width: 112px; display: none; padding: 4px; border-radius: 0 0 8px 8px; background: #05050D; border: 1px solid #2F2F37; }
.cart-condition-menu.open > div { display: grid; gap: 4px; }
.cart-condition-menu > div button { height: 32px; color: rgba(255,255,255,.75); border-radius: 6px; font: 400 14px/18px var(--font); }
.cart-condition-menu > div button.selected { color: #1E55F9; background: rgba(30,85,249,.12); }
.cart-price { grid-area: price; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #fff; font: 500 16px/20px var(--font); white-space: nowrap; }
.cart-price strong { font: 600 18px/22px var(--font); }
.cart-currency { grid-area: currency; display: flex; justify-content: flex-end; }
.cart-remove { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.cart-item-side .cart-remove { grid-area: remove; align-self: center; }
.cart-remove:hover { background: rgba(230,41,41,.12); }
.cart-remove img { width: 18px; height: 18px; }
.cart-unavailable { margin-top: 8px; padding-top: 16px; border-top: 1px solid #2F2F37; }
.cart-unavailable h3 { margin: 0 0 12px; color: rgba(255,255,255,.45); font: 500 16px/20px var(--font); }
.cart-side { width: 314px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; color: #fff; }
.cart-summary-card { width: 314px; padding: 16px 0 16px; border: 0; border-radius: 16px; background: #1B1B23; overflow: hidden; }
.cart-summary-card h2 { margin: 0 16px; color: #fff; text-align: center; font: 500 18px/22px var(--font); }
.cart-selected-details { margin: 10px 16px 0; }
.cart-selected-details > button { width: fit-content; margin: 0 auto; display: block; cursor: pointer; color: #1E55F9; border-bottom: 1px dashed #1E55F9; font: 300 10px/13px var(--font); text-align: center; }
.cart-selected-details.disabled > button { cursor: default; pointer-events: none; }
.cart-selected-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .34s cubic-bezier(.22,1,.36,1), opacity .22s ease, margin-top .34s cubic-bezier(.22,1,.36,1); margin-top: 0; }
.cart-selected-details.open .cart-selected-panel { max-height: 420px; opacity: 1; margin-top: 14px; }
.cart-selected-details ul { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; color: rgba(255,255,255,.75); font: 400 14px/18px var(--font); }
.cart-selected-details li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-selected-details li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-selected-details li b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0; color: rgba(255,255,255,.75); font: 400 14px/18px var(--font); text-align: right; }
.cart-selected-details li b .price-gram { width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; }
.cart-summary-rows { margin: 14px 0 0; display: grid; gap: 6px; }
.cart-summary-rows div { min-height: 18px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.75); font: 400 14px/18px var(--font); }
.cart-summary-rows b { color: rgba(255,255,255,.75); font-weight: 400; }
.cart-summary-rows.accent div,
.cart-summary-rows.accent b { color: #1E55F9; }
.cart-summary-rows.accent .price-gram { width: 11px; height: 11px; margin-left: 0; vertical-align: -1px; }
.cart-summary-rows i,
.cart-summary-total i { color: #2F2F37; font-style: normal; }
.cart-summary-line { width: 100%; height: 1px; margin-top: 14px; background: #2F2F37; }
.cart-summary-total { margin: 25px 16px 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font: 600 20px/24px var(--font); }
.cart-summary-total b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cart-balance { position: relative; width: 314px; height: 102px; padding: 16px 16px 0; display: block; border: 0; border-radius: 12px; background: #000003; overflow: hidden; font: 400 14px/18px var(--font); }
.cart-balance-title { width: 282px; height: 22px; display: flex; align-items: center; justify-content: center; color: #fff; font: 500 18px/22px var(--font); text-align: center; }
.cart-balance-value { position: absolute; top: 52px; width: 157px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font: 600 20px/24px var(--font); overflow: hidden; }
.cart-balance-value::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .36s ease; }
.cart-balance-value:hover::before { opacity: 1; }
.cart-balance-value > * { position: relative; z-index: 1; }
.cart-balance-rub { left: 0; }
.cart-balance-gram { left: 157px; }
.cart-balance-rub::before { background: radial-gradient(160px 72px at 12% 100%, rgba(46,184,34,.24), rgba(46,184,34,.12) 42%, rgba(46,184,34,0) 78%); }
.cart-balance-gram::before { background: radial-gradient(160px 72px at 88% 100%, rgba(30,85,249,.26), rgba(30,85,249,.12) 42%, rgba(30,85,249,0) 78%); }
.cart-balance-gram img { width: 15px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.cart-mass-currency { margin: 16px 16px 0; display: flex; align-items: center; gap: 0; color: rgba(255,255,255,.75); font: 400 12px/15px var(--font); }
.cart-mass-currency.disabled { opacity: .45; pointer-events: none; }
.cart-mass-currency input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; appearance: none; border: 1px solid #343640; border-radius: 4px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.cart-mass-currency input:checked { background: url('../assets/check-box.svg') center/15px 15px no-repeat; border-color: transparent; animation: checkboxPop .22s ease; }
.cart-mass-currency em { flex: 0 0 auto; margin-left: 5px; display: inline-flex; align-items: center; gap: 0; font-style: normal; }
.cart-mass-currency em b { margin-left: .25em; }
.cart-mass-currency em img { width: 14px; height: 14px; object-fit: contain; }
.cart-mass-currency em b + img { margin-left: 6px; }
.cart-mass-currency .currency-switch { flex: 0 0 auto; margin-left: 6px; }
.cart-warning { margin-top: 14px; color: #FF7C02; font: 500 14px/18px var(--font); }
.cart-pay { width: 282px; height: 48px; margin: 25px 16px 0; color: #fff; border-radius: 10px; background: #1E55F9; font: 600 16px/20px var(--font); }
.cart-pay:disabled { color: rgba(255,255,255,.35); background: #27272F; }
.cart-empty { width: 100%; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 18px; color: #fff; }
.cart-empty h2 { margin: 0; font: 600 24px/29px var(--font); }
.cart-empty button { width: 180px; height: 48px; color: #fff; background: #1E55F9; border-radius: 10px; font: 500 16px/20px var(--font); }
@media (max-width: 1180px) {
  .cart-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .cart-list, .cart-side, .cart-summary-card, .cart-balance, .cart-empty { width: 100%; }
  .cart-side { position: static; }
}
@media (max-width: 760px) {
  .cart-item { grid-template-columns: 24px 56px minmax(0, 1fr); grid-template-areas: "check avatar info" "check avatar side"; gap: 12px 10px; }
  .cart-avatar { width: 56px; height: 56px; }
  .cart-item-side { grid-template-columns: minmax(0, 1fr) auto 36px; }
  .cart-placement-controls { gap: 10px; }
  .cart-placement-picker { grid-template-columns: minmax(0, 1.2fr) minmax(92px, .8fr); max-width: 100%; }
  .cart-creative { flex: 1 1 136px; }
}
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 20px 48px minmax(0, 1fr); padding: 12px; gap: 10px 8px; }
  .cart-avatar { width: 48px; height: 48px; }
  .cart-item-side { grid-template-columns: minmax(0, 1fr) auto 32px; gap: 8px; }
  .cart-condition-fixed, .cart-condition-menu > button, .cart-currency-static { padding: 0 10px; font-size: 13px; }
  .cart-price { gap: 4px; font-size: 14px; }
  .cart-price strong { font-size: 16px; }
  .cart-placement-picker { grid-template-columns: minmax(0, 1fr) minmax(88px, .75fr); }
  .cart-creative { flex-basis: 100%; }
}

/* My channel advertising availability settings */
.my-channel-card .settings-bottom-row {
  display: grid !important;
  grid-template-columns: 412px 525px !important;
  column-gap: 59px !important;
  align-items: flex-start !important;
}
.settings-ad-availability { width: 412px; min-width: 412px; }
.settings-ad-availability h3 {
  margin: 0;
  height: 18px;
  color: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.settings-flags h3,
.settings-flags .settings-subtitle {
  margin: 0;
  height: 18px;
  color: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.ad-week-days { margin-top: 8px; display: flex; gap: 8px; }
.ad-week-day {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  color: #1E55F9;
  background: rgba(30,85,249,.12);
  font: 500 16px/20px var(--font);
  transition: background-color .18s ease, color .18s ease;
}
.ad-week-day.active {
  color: #fff;
  background: #1E55F9;
  font-weight: 700;
}
.ad-slots-title { margin-top: 24px !important; }
.ad-time-slots { margin-top: 8px; display: grid; gap: 8px; }
.ad-time-slot-row {
  display: grid;
  grid-template-columns: 52px 180px 52px 52px;
  gap: 8px;
  align-items: center;
}
.ad-time-slot-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255,255,255,.4);
  background: rgba(5,5,13,.12);
  font: 500 14px/18px var(--font);
}
.ad-time-slot-control { width: 180px; height: 52px; position: relative; }
.ad-time-slot-picker { width: 180px; position: relative; }
.ad-time-slot-toggle {
  width: 180px;
  height: 52px;
  padding: 0 40px 0 16px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: #fff;
  background: #000;
  font: 400 16px/20px var(--font);
  text-align: left;
  white-space: nowrap;
}
.ad-time-slot-toggle i {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translateY(-50%);
  transition: transform .18s ease;
}
.ad-time-slot-picker.open .ad-time-slot-toggle {
  border-radius: 10px 10px 0 0;
}
.ad-time-slot-picker.open .ad-time-slot-toggle i {
  transform: translateY(-50%) rotate(180deg);
}

/* The shared white chevron asset disappears on light dropdown surfaces. */
body.light-theme .language i,
body.light-theme .section-chevron,
body.light-theme .chip.more,
body.light-theme .dropdown-trigger i,
body.light-theme .profile-menu-title i,
body.light-theme .my-channel-chevron::before,
body.light-theme .moderation-plain-selector .chips::after,
body.light-theme .condition-type-toggle i,
body.light-theme .hot-time-input i,
body.light-theme .ad-time-slot-toggle i {
  background-image: url('../assets/chevron-down-dark.svg');
}
body.light-theme .channel-settings-select {
  background-image: url('../assets/chevron-down-dark.svg');
}
.ad-time-slot-panel {
  position: absolute;
  z-index: 1200;
  left: 0;
  top: 52px;
  width: 180px;
  box-sizing: border-box;
  display: none;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  border-radius: 0 0 10px 10px;
  background: #000;
  box-shadow: 0 12px 24px rgba(0,0,0,.34);
}
.ad-time-slot-picker.open .ad-time-slot-panel { display: grid; }
.ad-time-slot-column { min-width: 0; padding: 0 6px; }
.ad-time-slot-column:first-child { padding-left: 0; border-right: 1px solid #2F2F37; }
.ad-time-slot-column:last-child { padding-right: 0; }
.ad-time-slot-column strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.75);
  text-align: center;
  font: 500 12px/15px var(--font);
}
.ad-time-slot-values { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ad-time-slot-values > div {
  max-height: 208px;
  overflow-y: auto;
  scrollbar-width: none;
  display: grid;
  gap: 4px;
}
.ad-time-slot-values > div::-webkit-scrollbar { display: none; }
.ad-time-slot-values button {
  min-height: 32px;
  border-radius: 6px;
  color: rgba(255,255,255,.75);
  font: 400 16px/20px var(--font);
}
.ad-time-slot-values button:hover:not(:disabled),
.ad-time-slot-values button.selected {
  color: #1E55F9;
  background: rgba(30,85,249,.12);
}
.ad-time-slot-values button:disabled,
.ad-time-slot-values button.disabled {
  color: rgba(255,255,255,.18) !important;
  background: transparent !important;
  cursor: not-allowed;
}
.ad-time-slot-add {
  width: 180px;
  height: 52px;
  border-radius: 10px;
  color: #fff;
  background: rgba(5,5,13,.2);
  font: 500 16px/20px var(--font);
}
.ad-time-slot-action {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  border: 2px solid #27272F;
  border-radius: 10px;
  background: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.ad-time-slot-action:hover:not(.paused):not(:disabled):not(.settings-disabled) { border-color: #FF7C02; background: #FF7C02; }
.ad-time-slot-action span { width: 2px; height: 13px; margin: 0; border-radius: 999px; background: #fff; }
.ad-week-day.settings-disabled,
.ad-time-slot-add.settings-disabled,
.ad-time-slot-toggle.settings-disabled,
.ad-time-slot-action.settings-disabled,
.ad-time-slot-delete.settings-disabled,
.ad-time-slot-picker.settings-disabled .ad-time-slot-toggle {
  cursor: not-allowed;
  opacity: .45;
}
.ad-time-slot-action.paused { border-color: #FF7C02; background: #FF7C02; }
.ad-time-slot-delete {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #E62929;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.ad-time-slot-delete:hover:not(:disabled):not(.settings-disabled) {
  background: rgba(230,41,41,.12);
}
.ad-time-slot-delete img {
  width: 20px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.my-channel-card .settings-flags {
  width: 525px !important;
  min-width: 525px !important;
  display: grid;
  grid-auto-rows: max-content;
  gap: 8px;
}
.my-channel-card .settings-flags > label.settings-check {
  min-height: 20px;
  height: 20px;
}
.settings-flags .settings-subtitle { margin-top: 16px; }
.settings-caution-actions { margin-top: 8px; display: flex; gap: 8px; }
.settings-flags .settings-subtitle + .settings-caution-actions { margin-top: 0; }
.settings-caution-actions button {
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: #14141D;
  font: 500 14px/18px var(--font);
  white-space: nowrap;
}
.settings-caution-share { width: 249px; }
.settings-caution-transfer { width: 186px; }

@media (max-width: 1300px) {
  .channel-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 24px !important;
  }
  .channel-page .channel-sidebar,
  .channel-page .channel-tabs,
  .channel-page .channel-dates,
  .channel-page .channel-buy-column,
  .channel-page .channel-detail-card {
    width: 100%;
    max-width: 100%;
  }
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column {
    grid-column: 1;
    grid-row: auto !important;
  }
  .channel-page .channel-buy-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .channel-page .channel-buy-column > * {
    width: 100%;
    max-width: 100%;
  }
}

/* Channel detail keeps its desktop three-column geometry above this breakpoint;
   below it, collapse the root grid and let fixed inner surfaces shrink safely. */
@media (max-width: 1400px) {
  .channel-page {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 24px !important;
  }
  .channel-page .channel-sidebar,
  .channel-page .channel-tabs,
  .channel-page .channel-dates,
  .channel-page .channel-buy-column,
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column {
    grid-column: 1;
    grid-row: auto !important;
  }
  .channel-page .channel-buy-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .channel-view .detail-body,
  .channel-view .detail-stats,
  .channel-view .detail-description,
  .channel-view .detail-separator,
  .channel-view .detail-tgstat-link,
  .channel-view .detail-tgstat-widget,
  .channel-view .channel-calendar-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .channel-view .detail-stats {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-view .detail-description p,
  .channel-view .detail-tgstat-widget {
    width: auto;
    max-width: 100%;
  }
  .channel-view .channel-reviews-header { flex-direction: column; }
  .channel-view .channel-reviews-filter-field { width: 200px; min-width: 200px; height: 25.6px; }
  .channel-view .channel-reviews-header .channel-reviews-filter-dropdown { width: 200px; min-width: 200px; height: 25.6px; }
  .channel-view .channel-reviews-summary,
  .channel-view .channel-reviews-summary.has-histogram { grid-template-columns: 1fr; }
  .channel-view .detail-separator-before-statistics { width: calc(100% + 64px); max-width: none; }
  .channel-view .channel-reviews-score-main > strong { font-size: 64px; line-height: 64px; }
  .channel-view .channel-reviews-filter-trigger,
  .channel-view .channel-reviews-filter-dropdown .dropdown-panel { width: 200px; min-width: 200px; }
  .channel-view .channel-calendar-week,
  .channel-view .channel-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .channel-view .channel-calendar-week span,
  .channel-view .channel-calendar-day {
    width: auto;
  }
  .channel-view .channel-calendar-slot-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .channel-view .channel-calendar-slot-row span,
  .channel-view .channel-calendar-slot-row button {
    width: auto;
    min-width: 0;
  }
}
.self-channel-purchase-toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; color: #fff; background: #27272F; border: 1px solid #3D3D48; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s ease; font: 500 14px/18px var(--font); text-align: center; }
.self-channel-purchase-toast.visible { opacity: 1; transform: translate(-50%, 0); }
body.light-theme .self-channel-purchase-toast { color: #1B1B23; background: #fff; border-color: #D6D6DE; }
.channel-diagnostic-hint { display: inline-grid; width: 18px; height: 18px; margin-left: 8px; place-items: center; color: currentColor; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 16px; vertical-align: middle; }

