/* CHILL-mood-card-Control v1.1.0 */
.chill-mood,
.chill-mood * {
  box-sizing: border-box;
}

.chill-mood-debug {
  width: min(100% - 28px, 1240px);
  margin: 14px auto !important;
  padding: 10px !important;
  background: #eef1f5 !important;
  border: 1px solid #d7dde6 !important;
  white-space: pre-wrap !important;
  color: #111 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.chill-mood {
  width: min(100% - 28px, 1240px);
  margin: 28px auto 34px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(160, 255, 60, 0.05), transparent 30%),
    linear-gradient(180deg, #10120c 0%, #080906 100%);
  border: 1px solid rgba(164, 220, 62, 0.11);
  border-radius: 18px;
  color: #f2f6e8;
  overflow: hidden;
}

.chill-mood a {
  text-decoration: none !important;
}

.chill-mood__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 14px;
}

.chill-mood__heading {
  margin: 0 0 6px !important;
  color: #f7fbe8 !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
}

.chill-mood__subtitle {
  margin: 0 !important;
  color: rgba(238, 245, 220, 0.72) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.chill-mood__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9d937 !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  padding-top: 3px;
  background: transparent !important;
}

.chill-mood__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.chill-mood__card {
  position: relative;
  display: block;
  min-height: 160px;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0d08;
  border: 1px solid rgba(172, 225, 55, 0.13);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.chill-mood__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 28%, var(--chill-mood-glow, rgba(169,217,55,.18)), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #11140f 0%, #080906 100%);
}

.chill-mood__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), inset 0 -34px 70px rgba(0,0,0,0.38);
}

.chill-mood__card:hover .chill-mood__custom-image {
  transform: translateY(-3px) scale(1.04);
}

.chill-mood__content {
  position: relative;
  z-index: 3;
  min-height: 160px;
  padding: 18px 72px 16px 18px;
}

.chill-mood__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chill-mood__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chill-mood-color, #a9d937);
  filter: drop-shadow(0 0 10px var(--chill-mood-glow, rgba(169,217,55,.5)));
}

.chill-mood__icon svg {
  width: 42px;
  height: 42px;
  display: block;
  stroke: currentColor;
}

.chill-mood__title {
  margin: 0 0 6px !important;
  color: var(--chill-mood-color, #a9d937) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 0 16px var(--chill-mood-glow, rgba(169,217,55,.42));
}

.chill-mood__desc {
  margin: 0 !important;
  color: rgba(247, 251, 232, 0.82) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.chill-mood__recommend {
  position: absolute;
  left: 18px;
  right: 76px;
  bottom: 18px;
  z-index: 4;
  margin: 0 !important;
  color: rgba(247, 251, 232, 0.72) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.chill-mood__recommend strong {
  color: var(--chill-mood-color, #a9d937);
  font-weight: 900;
}

.chill-mood__custom-image {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 12px;
  width: 44px !important;
  max-width: 44px !important;
  height: 86px !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.55));
  transition: transform 0.25s ease;
}

.chill-mood__empty {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: rgba(247, 251, 232, 0.55);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .chill-mood__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chill-mood__card,
  .chill-mood__content {
    min-height: 150px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  @supports (overflow-x: clip) {
    html,
    body {
      overflow-x: clip !important;
    }
  }

  .chill-mood {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: 10px 0 18px;
    padding: 16px 0 18px;
    transform: translateX(-50%);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    border-color: transparent;
    background:
      radial-gradient(circle at 18% 0%, rgba(168, 220, 50, 0.10), transparent 42%),
      linear-gradient(180deg, #080906 0%, #050604 100%);
    box-shadow: none;
    overflow: hidden;
  }

  @supports (width: 100dvw) {
    .chill-mood {
      width: 100dvw;
      max-width: 100dvw;
    }
  }

  .chill-mood__head {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    margin: 0 0 10px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .chill-mood__heading {
    font-size: 20px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }

  .chill-mood__subtitle {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    max-width: 235px;
  }

  .chill-mood__all {
    position: relative;
    margin-left: auto;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(168, 220, 50, 0.36);
    display: block;
    background: rgba(168, 220, 50, 0.035) !important;
  }

  .chill-mood__all span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    font-size: 17px;
    line-height: 1;
    transform: translate(-50%, -52%);
  }

  .chill-mood__grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding-top: 2px;
    padding-bottom: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(12px, env(safe-area-inset-left));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .chill-mood__grid::-webkit-scrollbar {
    display: none;
  }

  .chill-mood__card {
    flex: 0 0 84%;
    width: 84%;
    min-width: 84%;
    min-height: 158px;
    scroll-snap-align: start;
    border-radius: 16px;
    border-color: rgba(172, 225, 55, 0.18);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.42);
  }

  .chill-mood__card::after {
    border-radius: 16px;
  }

  .chill-mood__content {
    min-height: 158px;
    padding: 16px 84px 16px 16px;
  }

  .chill-mood__top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .chill-mood__title {
    font-size: 17px !important;
    line-height: 1.22 !important;
  }

  .chill-mood__desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 190px;
  }

  .chill-mood__icon,
  .chill-mood__icon svg {
    width: 36px;
    height: 36px;
  }

  .chill-mood__recommend {
    left: 16px;
    right: 88px;
    bottom: 15px;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  .chill-mood__custom-image {
    right: 16px;
    bottom: 13px;
    width: 54px !important;
    max-width: 54px !important;
    height: 104px !important;
  }

  .chill-mood__empty {
    left: 16px;
    right: 16px;
    bottom: 15px;
  }
}

@media (max-width: 380px) {
  .chill-mood {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .chill-mood__head {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .chill-mood__subtitle {
    max-width: 210px;
  }

  .chill-mood__grid {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    scroll-padding-left: max(10px, env(safe-area-inset-left));
  }

  .chill-mood__card {
    flex-basis: 86%;
    width: 86%;
    min-width: 86%;
    min-height: 154px;
  }

  .chill-mood__content {
    min-height: 154px;
    padding-right: 76px;
  }

  .chill-mood__desc {
    max-width: 170px;
  }

  .chill-mood__recommend {
    right: 80px;
  }

  .chill-mood__custom-image {
    right: 13px;
    width: 48px !important;
    max-width: 48px !important;
    height: 96px !important;
  }
}