@media (min-width: 1201px) {
  .main-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .main-layout > .aside__wrap {
    grid-row: span 2;
  }

  .main-layout > .content {
    margin-left: 0;
  }

  .main-layout > .mel-showcase {
    margin-bottom: 0;
  }
}

.mel-showcase {
  --showcase-accent: #ffb600;
  --showcase-tile: #212121;
  margin: 0 0 20px;
  border-radius: 12px;
  padding: 6px 6px 32px;
  background: #121212;
  color: #fff;
  font-family: Roboto, sans-serif;
}

.mel-showcase__inner {
  min-width: 0;
}

.mel-showcase__top {
  display: grid;
  gap: 8px;
}

.mel-promotions,
.mel-popular {
  position: relative;
  min-width: 0;
}

.mel-loop__viewport {
  overflow: auto hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.mel-promotions .mel-loop__viewport {
  border-radius: 8px;
}

[data-loop="continuous"] .mel-loop__viewport {
  scroll-snap-type: none;
}

.mel-loop__viewport::-webkit-scrollbar {
  display: none;
}

.mel-loop__track {
  display: flex;
  position: relative;
}

.mel-loop__track > a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.mel-promo,
.mel-showcase__signup {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 248px;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.mel-promo {
  width: 100%;
  padding: 18px 38px 32px;
}

.mel-promo__art,
.mel-showcase__cat,
.mel-category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  z-index: -2;
}

.mel-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000e, #0009 53%, transparent);
}

.mel-promo__content {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: min(100%, 580px);
}

.mel-promo__title {
  font-size: clamp(20px, 2.15vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
}

.mel-promo__description {
  font-size: 14px;
  line-height: 1.35;
}

.mel-promo__content .mel-offer__cta {
  margin-top: 0;
}

.mel-showcase__signup-text {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--showcase-accent);
  color: #212121;
  font-size: 13px;
  text-transform: uppercase;
}

.mel-promotions__controls {
  display: none;
}

[data-ready] .mel-promotions__controls {
  display: contents;
}

.mel-loop__control {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #303030;
  color: #fff;
  cursor: pointer;
}

.mel-loop__control:hover {
  background: #515151;
}

.mel-loop__control[data-previous]::before,
.mel-loop__control[data-next]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.mel-loop__control[data-previous]::before {
  transform: rotate(-135deg);
}

.mel-loop__control[data-pause]::before {
  content: "Ⅱ";
  font-size: 14px;
  font-weight: 700;
}

.mel-loop__control[data-pause][aria-pressed="true"]::before {
  content: "▶";
  font-size: 11px;
}

.mel-promotions__controls .mel-loop__control {
  position: absolute;
  z-index: 1;
  background: #151515bd;
}

.mel-promotions__controls :is([data-previous], [data-next]) {
  top: 50%;
  transform: translateY(-50%);
}

.mel-promotions__controls [data-previous] { left: 2px; }
.mel-promotions__controls [data-next] { right: 2px; }
.mel-promotions__controls [data-pause] { bottom: 7px; right: 7px; }

.mel-promotions__dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(4px, .45vw, 8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.mel-promotions__dots span {
  width: clamp(5px, .45vw, 8px);
  height: clamp(5px, .45vw, 8px);
  border-radius: 10px;
  background: #8b8b8b;
}

.mel-promotions__dots .is-current {
  width: clamp(12px, 1.2vw, 24px);
  background: #fff;
}

.mel-showcase__signup {
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(16px, 2vw, 32px);
  border-radius: 8px;
  background: #212121;
}

.mel-showcase__payment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: 102px;
}

.mel-showcase__payment img {
  max-width: 76px;
  height: 20px;
}

.mel-showcase__signup-text {
  background: #ddd;
}

.mel-showcase__welcome {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mel-showcase__welcome a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  border-radius: 8px;
  padding-right: 12px;
  background: linear-gradient(90deg, #835f1b, var(--showcase-tile) 43%);
  box-shadow: inset 0 -3px #aa772a;
  color: #fff;
}

.mel-showcase__welcome img {
  align-self: flex-end;
  width: min(30%, 125px);
  height: auto;
}

.mel-showcase__welcome :is(strong, small) {
  display: block;
  line-height: 1.25;
}

.mel-showcase__welcome strong {
  font-size: 15px;
  text-transform: uppercase;
}

.mel-showcase__welcome small {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
}

.mel-popular {
  margin-top: clamp(24px, 3vw, 46px);
}

.mel-popular__heading {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.mel-popular .mel-loop__track {
  gap: 13px;
}

.mel-category {
  position: relative;
  display: flex;
  align-items: center;
  width: min(226px, 68vw);
  height: 88px;
  padding: 14px 20px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
  background: #212121;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.mel-category strong {
  max-width: 64%;
  text-shadow: 0 1px 4px #0009;
}

.mel-showcase :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

@media (min-width: 520px) {
  .mel-showcase__welcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .mel-showcase__top {
    grid-template-columns: minmax(0, 2.76fr) minmax(190px, 1fr);
  }

  .mel-showcase__signup {
    min-height: 248px;
  }

  .mel-promo {
    padding-inline: 56px;
  }

  .mel-promo::before {
    background: linear-gradient(90deg, #000c, transparent 65%);
  }
}

@media (pointer: coarse) {
  .mel-loop__control {
    width: 44px;
    height: 44px;
  }

  .mel-promo {
    padding-inline: 50px;
  }
}
