body.listing-light {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #eaecf0;
  --tag-bg: #f2f4f7;
  --tag-text: #475467;
  --bonus-bg: #f8f9fa;
  --green: #10b981;
  --star: #f4b400;
  --cta: #10b981;
  --cta-hover: #0f9f6f;

  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.listing-light-main {
  padding: 18px 0 36px;
}

.listing-light-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 14px;
}

.listing-light-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.listing-light-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  padding: 14px;
  position: relative;
  transition: all 0.4s ease;
  will-change: transform, opacity;
}

.listing-light-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

/* Эффект ореола для карточки-лидера */
.listing-light-item--top1 {
  border: 2px solid #f5c14d;
  box-shadow: 0 6px 20px rgba(245, 193, 77, 0.22);
}

.listing-light-ribbon {
  position: absolute;
  top: -1px;
  right: 16px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #7c2d12;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Mobile: 4 этажа */
.listing-light-brand {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.listing-light-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.listing-light-logo-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid #eeeeee;
  background: #24252f;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  box-sizing: border-box;
}

.listing-light-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Контрастный фон для светлого логотипа National Casino */
.listing-light-logo-box--contrast {
  background: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.listing-light-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: auto;
  margin: 4px auto 0;
}

.listing-light-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 999px;
  white-space: nowrap;
}

.listing-light-tag--top {
  background: #fff3dc;
  color: #b45309;
}

.listing-light-tag--new {
  background: #dcfce7;
  color: #166534;
}

.listing-light-tag--exclusive {
  background: #f3e8ff;
  color: #5b3df5;
}

.listing-light-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.listing-light-social {
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  white-space: nowrap;
}

.listing-light-social-slot {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.listing-light-social--live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  gap: 6px;
  padding: 4px 16px 4px 8px;
  margin: 0;
  border-radius: 20px;
  background: #fff5f5;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0s linear 0s;
}

.listing-light-social--live.is-counter-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.listing-light-social--live.is-counter-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 899px) {
  .listing-light-item.is-active-focus {
    transform: scale(1.03);
    z-index: 2;
  }

  .listing-light-header {
    justify-content: space-between;
  }

  .listing-light-name {
    text-align: left;
  }

  .listing-light-social--live {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .listing-light-brand {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "logo header"
      "tags tags";
    column-gap: 12px;
    row-gap: 6px;
  }

  .listing-light-left {
    display: contents;
    width: auto;
  }

  .listing-light-logo-box {
    grid-area: logo;
    padding: 2px;
  }

  .listing-light-header {
    grid-area: header;
    min-width: 0;
  }

  .listing-light-tags {
    grid-area: tags;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 0;
  }

  .listing-light-tag {
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .listing-light-tags {
    flex-wrap: wrap;
  }
}

.listing-light-social-label {
  color: #475467;
  font-weight: 600;
}

.listing-light-social-fire {
  line-height: 1;
}

@keyframes pulse-fire {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.fire-icon {
  animation: pulse-fire 2s infinite ease-in-out;
}

.listing-light-social-count {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-width: 5ch;
  text-align: right;
}

.listing-light-social-count.is-updating {
  transform: scale(1.08);
  opacity: 0.8;
}

.listing-light-social-count.is-updating-up {
  color: #10b981;
}

.listing-light-social-count.is-updating-down {
  color: #ef4444;
}

.listing-light-name {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-light-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 30px;
}

.listing-light-rating-star {
  color: var(--star);
  font-size: 0.95em;
  line-height: 1;
}

.listing-light-rating-num {
  color: #101828;
  font-size: 0.9em;
}

.listing-light-bonus {
  margin-top: 12px;
  background: var(--bonus-bg);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  overflow-wrap: anywhere;
}

.listing-light-usp {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.listing-light-usp li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  color: #344054;
  line-height: 1.35;
  white-space: nowrap;
}

.listing-light-usp li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
}

.listing-light-usp li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.listing-light-right {
  margin-top: 14px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.listing-light-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--cta) 0%, var(--cta-hover) 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.listing-light-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.28);
}

.listing-light-cta:active {
  transform: scale(0.985);
}

.listing-light-cta--green {
  --cta: #10b981;
  --cta-hover: #059669;
}

.listing-light-cta--orange {
  --cta: #ff6b00;
  --cta-hover: #e85f00;
}

.listing-light-cta--red {
  --cta: #e53935;
  --cta-hover: #c62828;
}

.listing-light-urgency {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.listing-light-urgency-label {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.listing-light-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listing-light-timer-label {
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.listing-light-timer-sep {
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.listing-light-timer-box {
  min-width: 2.2ch;
  padding: 3px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: #b91c1c;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

.listing-light-countdown {
  color: #b42318;
  font-weight: 800;
}

.listing-light-review {
  display: none;
  margin-top: 8px;
  text-align: center;
  color: #667085;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

/* Desktop: 3 колонки */
@media (min-width: 900px) {
  .listing-light-item {
    display: grid;
    grid-template-columns: minmax(150px, 18%) minmax(0, 1fr) minmax(190px, 22%);
    grid-template-areas:
      "left header right"
      "left social right"
      "left bonus right"
      "left usps right";
    align-items: center;
    align-content: center;
    column-gap: 22px;
    row-gap: 6px;
    padding: 18px 20px;
  }

  .listing-light-brand {
    display: contents;
  }

  .listing-light-left {
    grid-area: left;
    align-self: center;
    align-items: center;
  }

  .listing-light-logo-box {
    width: 82px;
    height: 82px;
    align-self: center;
  }

  .listing-light-header {
    grid-area: header;
    margin-bottom: 8px;
  }

  .listing-light-social-slot {
    grid-area: social;
    height: 28px;
    margin-top: 0;
    justify-content: flex-start;
  }

  .listing-light-name {
    font-size: 38px;
  }

  .listing-light-rating {
    font-size: 32px;
  }

  .listing-light-bonus {
    grid-area: bonus;
    margin-top: 0;
    font-size: 27px;
    padding: 12px 16px;
  }

  .listing-light-usp {
    grid-area: usps;
    margin-top: 0;
  }

  .listing-light-right {
    grid-area: right;
    margin-top: 0;
    align-self: stretch;
    padding-left: 8px;
    justify-content: flex-start;
  }

  .listing-light-right .listing-light-cta {
    margin-top: 35px;
  }

  .listing-light-review {
    display: block;
  }
}

@media (max-width: 420px) {
  .listing-light-social {
    font-size: 11px;
  }

  .listing-light-name {
    font-size: 28px;
  }

  .listing-light-rating {
    font-size: 27px;
  }

  .listing-light-bonus {
    font-size: 24px;
  }

  .listing-light-usp {
    gap: 8px 10px;
  }

  .listing-light-usp li {
    font-size: 15px;
  }
}
