.mok-coverflow
{
  --cf-bg: transparent;
  --cf-card-w: clamp(190px, 58vw, 360px);
  --cf-card-h: clamp(230px, 42vw, 360px);
  --cf-radius: 18px;
  --cf-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  --cf-border: 1px solid rgba(255, 255, 255, 0.12);
  --cf-caption-bg: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  --cf-caption-color: #fff;
  --cf-duration: 560ms;
  --cf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--cf-bg);
}

.mok-coverflow-head
{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mok-coverflow-title
{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.mok-coverflow-subtitle
{
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.mok-coverflow-state
{
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.mok-coverflow-state--error
{
  background: rgba(220, 53, 69, 0.14);
  color: #fff;
}

.mok-coverflow-stage
{
  position: relative;
  outline: none;
  user-select: none;
  touch-action: pan-y;
}

.mok-coverflow-viewport
{
  position: relative;
  height: calc(var(--cf-card-h) + 20px);
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.mok-coverflow-card
{
  position: absolute;
  top: 10px;
  left: 50%;
  width: var(--cf-card-w);
  height: var(--cf-card-h);
  transform-style: preserve-3d;
  transform-origin: center center;
  border-radius: var(--cf-radius);
  box-shadow: var(--cf-shadow);
  border: var(--cf-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #111;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: transform var(--cf-duration) var(--cf-ease), opacity var(--cf-duration) var(--cf-ease);
}

.mok-coverflow-img
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mok-coverflow-img--placeholder
{
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.mok-coverflow-caption
{
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 16px 14px 16px;
  background: var(--cf-caption-bg);
  color: var(--cf-caption-color);
}

.mok-coverflow-name
{
  font-weight: 700;
  line-height: 1.15;
  font-size: 1.02rem;
  text-wrap: balance;
}

.mok-coverflow-meta
{
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.92rem;
}

.mok-coverflow-controls
{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mok-coverflow-btn
{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mok-coverflow-btn:disabled
{
  opacity: 0.35;
}

.mok-coverflow-counter
{
  min-width: 72px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

@media (min-width: 768px)
{
  .mok-coverflow
  {
    --cf-card-w: clamp(260px, 34vw, 420px);
    --cf-card-h: clamp(300px, 28vw, 460px);
  }
}

@media (prefers-reduced-motion: reduce)
{
  .mok-coverflow-card
  {
    transition: none;
  }
}
