/* cards.css — პოსტერის ბარათი და „განაგრძე ყურება“ ბარათი */

/* ── პოსტერი ──────────────────────────────────────────────── */
.poster-card { min-width: 0; }
.poster-link { display: block; border-radius: var(--radius-sm); }
.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--dur) var(--ease);
}
.poster-link:hover .poster-frame img { filter: brightness(1.12); }
.poster-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-2);
  text-align: center;
  background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface));
}
.poster-title {
  display: -webkit-box;
  margin-top: 9px;
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--c-text);
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* „ახალი დამატებული“: ქვესტრიქონი („ფილმი · 2024“, „ახალი ეპიზოდი · S2 E5“) */
.poster-sub {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--c-text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── განაგრძე ყურება ──────────────────────────────────────── */
.continue-card { min-width: 0; }
.continue-link {
  position: relative;
  display: block;
  aspect-ratio: 2.15 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  isolation: isolate;
}
.continue-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.continue-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 17, 0.55) 0%, rgba(8, 11, 17, 0.2) 55%, rgba(8, 11, 17, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 11, 17, 0.85) 0%, rgba(8, 11, 17, 0.1) 70%);
}
.continue-body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 0 14px 14px;
}
.play-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(8, 11, 17, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.play-circle .icon { margin-left: 2px; }
.continue-text { display: grid; gap: 2px; min-width: 0; }
.continue-title {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-meta {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-text .progress { margin-top: 8px; max-width: 150px; }
.continue-link:hover .play-circle { background: rgba(173, 196, 255, 0.28); }

@media (max-width: 899px) {
  .continue-link { aspect-ratio: 3.4 / 1; }
  .continue-body { align-items: center; padding-bottom: 0; }
  .continue-text .progress { max-width: none; }
}
