/* Continue Watching — match main game cards (style-2 grid) */
#sp-continue-watching {
  display: none;
  padding: 10px 0 20px;
}
#sp-continue-watching.sp-cw-visible { display: block; }

#sp-continue-watching .sp-cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
#sp-continue-watching .sp-cw-title {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#sp-continue-watching .sp-cw-clear {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
#sp-continue-watching .sp-cw-clear:hover {
  border-color: #e50914;
  color: #fff;
}

/* Same visual language as .gen-carousel-movies-style-2 cards */
#sp-continue-watching .sp-cw-row,
.sp-cw-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
#sp-continue-watching .sp-cw-card,
.sp-cw-grid .sp-cw-card {
  flex: 0 0 280px;
  max-width: 280px;
  display: block;
  text-decoration: none !important;
  color: #fff;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}
#sp-continue-watching .sp-cw-card:hover {
  transform: translateY(-4px);
}
#sp-continue-watching .sp-cw-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  aspect-ratio: 16 / 9;
}
#sp-continue-watching .sp-cw-thumb img,
.sp-cw-grid .sp-cw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
#sp-continue-watching .sp-cw-card:hover .sp-cw-thumb img {
  transform: scale(1.05);
}
#sp-continue-watching .sp-cw-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
#sp-continue-watching .sp-cw-card:hover .sp-cw-thumb::after { opacity: 1; }

#sp-continue-watching .sp-cw-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e50914;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
  font-size: 16px;
}
#sp-continue-watching .sp-cw-card:hover .sp-cw-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#sp-continue-watching .sp-cw-meta {
  padding: 12px 2px 4px;
}
#sp-continue-watching .sp-cw-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
#sp-continue-watching .sp-cw-part {
  font-size: 12px;
  color: #999;
  margin: 0 0 8px;
}
#sp-continue-watching .sp-cw-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
#sp-continue-watching .sp-cw-bar > span {
  display: block;
  height: 100%;
  background: #e50914;
}
#sp-continue-watching .sp-cw-pct {
  margin-top: 6px;
  font-size: 11px;
  color: #aaa;
}
#sp-continue-watching .sp-cw-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
#sp-continue-watching .sp-cw-remove:hover {
  background: #e50914;
  border-color: #e50914;
}

@media (max-width: 767px) {
  #sp-continue-watching .sp-cw-card,
  .sp-cw-grid .sp-cw-card {
    flex-basis: 200px;
    max-width: 200px;
  }
}
