/* Empty slot must not take a feed cell. Author display:flex beats the hidden attribute. */
html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-afisha-slot[hidden],
html body .cotinder-index-feed[data-cotinder-feed-tab] .index__posts > .index__post.cotinder-feed-afisha-slot[hidden],
html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.cotinder-feed-afisha-slot[hidden],
html body.page-index .tabs__content.tabs__content_active .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.cotinder-feed-afisha-slot[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  border: 0 !important;
}

/*
 * Slot stretches with the feed row (equal-height); article must fill it —
 * otherwise «Афиша · ваш город» sits shorter than neighbor cards.
 */
html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]),
html body .cotinder-index-feed[data-cotinder-feed-tab] .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]),
html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]),
html body.page-index .tabs__content.tabs__content_active .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
}

.cotinder-feed-afisha {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: #fff8ef;
  border: 1px solid #f0d7b0;
  color: #3a2a1a;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]) > .cotinder-feed-afisha,
html body .cotinder-index-feed[data-cotinder-feed-tab] .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]) > .cotinder-feed-afisha,
html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.cotinder-feed-afisha-slot:not([hidden]) > .cotinder-feed-afisha {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  box-sizing: border-box;
}

.cotinder-feed-afisha__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c45a12;
  flex: 0 0 auto;
}

.cotinder-feed-afisha__photo {
  display: block;
  margin: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 160px;
}

.cotinder-feed-afisha__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.cotinder-feed-afisha__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  flex: 0 0 auto;
}

.cotinder-feed-afisha__title a {
  color: inherit;
  text-decoration: none;
}

.cotinder-feed-afisha__meta,
.cotinder-feed-afisha__text {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
  flex: 0 0 auto;
}

.cotinder-feed-afisha__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  flex: 0 0 auto;
  margin-top: auto;
}

.cotinder-feed-afisha__go,
.cotinder-feed-afisha__quiet {
  font: inherit;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.cotinder-feed-afisha__go {
  background: #e07a2f;
  color: #fff;
  text-decoration: none;
}

.cotinder-feed-afisha__quiet {
  background: transparent;
  border: 1px solid #e7c9a4;
  color: #6b4a12;
}
