.corner-rotator {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(250px, 30vw);
  height: 320px;
  z-index: 9999;
  pointer-events: none;
}

.corner-rotator__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 16, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.2s ease;
  pointer-events: none;
}

.corner-rotator__item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.corner-rotator__item:hover {
  filter: brightness(1.04);
}

.corner-rotator__item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.92;
}

.corner-rotator__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(4,10,14,0.2), rgba(4,10,14,0.95));
}

.corner-rotator__caption strong {
  color: #b6ffcb;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.corner-rotator__caption span {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #eafdf0;
}

@media (max-width: 768px) {
  .corner-rotator {
    width: 120px;
    height: 180px;
    right: 12px;
    bottom: 12px;
  }

  .corner-rotator__item img {
    height: 110px;
  }

  .corner-rotator__caption {
    padding: 8px;
    gap: 4px;
  }

  .corner-rotator__caption strong {
    font-size: 0.8rem;
  }

  .corner-rotator__caption span {
    font-size: 0.7rem;
    line-height: 1.2;
  }
}