/* Approved iacg site customization: p1-8g10. Vendor files stay unchanged. */
.single-drama-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 13px 16px 13px 18px;
  min-height: 48px;
  color: var(--main-color);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  border: 1px solid rgba(255, 105, 34, 0.22);
  background: linear-gradient(
    90deg,
    rgba(255, 105, 34, 0.09),
    var(--main-bg-color) 46%
  );
}

.single-drama-ad::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--main-radius) 0 0 var(--main-radius);
  background: linear-gradient(180deg, #f59f54 0%, #ff6922 100%);
}

.single-drama-ad-body {
  flex: 1 1 auto;
  min-width: 0;
}

.single-drama-ad-title {
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--key-color);
  letter-spacing: 0.2px;
}

.single-drama-ad-pill {
  overflow-wrap: anywhere;
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #e25a12;
  background: rgba(255, 105, 34, 0.14);
}

.dark-theme .single-drama-ad-pill {
  color: #ffb07a;
  background: rgba(255, 105, 34, 0.2);
}

.single-drama-ad-text {
  white-space: pre-line;
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--key-color);
  word-break: break-word;
}

.single-drama-ad-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  max-width: 45%;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 10px rgba(255, 105, 34, 0.28);
}

.single-drama-ad:hover {
  box-shadow: 0 4px 16px var(--main-shadow);
  border-color: rgba(255, 105, 34, 0.4);
}

@media (max-width: 640px) {
  .single-drama-ad {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px 12px 16px;
    font-size: 13px;
  }

  .single-drama-ad-title {
    font-size: 16px;
  }

  .single-drama-ad-text {
    font-size: 13px;
  }

  .single-drama-ad-btn {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 8px 12px;
    text-align: center;
    justify-content: center;
  }
}

.single-drama-ad-btn:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
}
