/* ========================================
   CONTINUE WATCHING - REMOVE BUTTON
   ======================================== */

.continue-card {
  position: relative;
}

/* Remove Button Styling */
.remove-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
  color: #fff;
  padding: 0;
  line-height: 0;
}

.remove-btn:hover {
  background: rgba(255, 51, 51, 0.9);
}

.remove-btn:active {
  opacity: 0.8;
}

.remove-btn svg {
  width: 16px;
  height: 16px;
  position: relative;
  top: 0;
  left: 0;
}

/* ========================================
   MOBILE DESIGN - CONTINUE WATCHING
   ======================================== */

/* Base desktop styling */
.continue-cards {
  position: relative;
  padding: 0 40px;
  margin-top: 1rem;
}

.continue-swiper {
  width: 100%;
  height: 100%;
}

.continue-swiper .swiper-wrapper {
  width: 100%;
}

.continue-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.continue-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* ========================================
   TABLET (768px and below)
   ======================================== */

@media (max-width: 768px) {
  .continue-cards {
    padding: 0 15px;
    margin-top: 0.75rem;
  }

  .continue-swiper {
    margin: 0;
  }

  .continue-swiper .swiper-button-prev,
  .continue-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .continue-swiper .swiper-button-prev::after,
  .continue-swiper .swiper-button-next::after {
    font-size: 16px;
  }

  .continue-card {
    height: 210px;
    padding: 0.3rem;
    border-radius: 8px;
  }

  .remove-btn {
    width: 32px;
    height: 32px;
    top: 6px;
    left: 6px;
  }

  .remove-btn svg {
    width: 18px;
    height: 18px;
  }

  .continue-card .card-info {
    padding: 0.35rem;
  }

  .continue-card .card-info h3 {
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 2.4em;
    min-height: 2.4em;
  }

  .continue-card .card-info p {
    font-size: 0.8rem;
    line-height: 1.1;
    margin: 0.25rem 0 0 0;
  }

  .episode-progress {
    font-size: 0.75rem;
    padding: 3px 6px;
  }

  .progress-bar {
    height: 3px;
  }
}

/* ========================================
   MOBILE (480px and below)
   ======================================== */

@media (max-width: 480px) {
  .continue-cards {
    padding: 0;
    margin-top: 0.5rem;
  }

  .continue-swiper {
    margin: 0;
  }

  .continue-swiper .swiper-button-prev,
  .continue-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 5;
  }

  .continue-swiper .swiper-button-prev::after,
  .continue-swiper .swiper-button-next::after {
    font-size: 16px;
    color: white;
  }

  .continue-swiper .swiper-button-prev:hover,
  .continue-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .continue-swiper .swiper-slide {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .continue-card {
    height: 170px;
    padding: 0.4rem;
    border-radius: 6px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    display: block;
    gap: none;
  }

  .continue-card .card-image {
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 100px;
    min-width: none;
    position: relative;
    display: block;
  }

  .continue-card .card-image img {
    border-radius: 5px;
    height: 100px;
    width: 100%;
    object-fit: cover;
  }

  .remove-btn {
    width: 24px;
    height: 24px;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .remove-btn svg {
    width: 14px;
    height: 14px;
    position: relative;
    top: 0;
    left: 0;
  }

  .continue-card .card-info {
    padding: 0.35rem;
    margin-right: 0;
  }

  .continue-card .card-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    height: 1.2em;
    min-height: 1.2em;
  }

  .continue-card .card-info p {
    font-size: 0.7rem;
    line-height: 1.1;
    margin: 0.25rem 0 0 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    opacity: 0.8;
  }

  .episode-progress {
    font-size: 0.65rem;
    padding: 2px 5px;
    bottom: 5px;
    right: 5px;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    height: auto !important;
    display: inline-block;
    width: auto !important;
    max-height: 20px;
    line-height: 1.2;
  }

  .progress-bar {
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
  }
}

/* ========================================
   EXTRA SMALL (320px and below)
   ======================================== */

@media (max-width: 320px) {
  .continue-cards {
    padding: 0 4px;
  }

  .continue-swiper {
    margin: 0 -4px;
  }

  .continue-card {
    height: 160px;
  }

  .continue-card .card-info h3 {
    font-size: 0.75rem;
  }

  .continue-card .card-info p {
    font-size: 0.65rem;
  }

  .remove-btn {
    width: 26px;
    height: 26px;
    top: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .remove-btn svg {
    width: 15px;
    height: 15px;
    position: relative;
    top: 0;
    left: 0;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.continue-empty-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
