/* ============================================================
   WATCH ORDER PAGES — Interactive Film List Styles
   ============================================================ */

/* Progress tracker */
#wo-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #16161C;
  border: 1px solid #25252F;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#wo-progress-bar {
  flex: 1;
  min-width: 120px;
  height: 8px;
  background: #22222E;
  border-radius: 999px;
  overflow: hidden;
}

#wo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C5CFC, #9B80FD);
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#wo-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #8A8A9A;
  white-space: nowrap;
  flex-shrink: 0;
}

#wo-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: #7C5CFC;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

/* Reset conflicting article-content styles for watch-order */
.sp-about-text.article-content h2 {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 2.5rem;
  padding-left: 14px;
  border-left: 4px solid #7C5CFC;
  font-size: 1.35rem;
}

.sp-about-text.article-content h2:first-child,
.sp-about-text.article-content h2:first-of-type {
  margin-top: 0;
}

.sp-about-text.article-content h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  color: #f5c518;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

/* Film list items as cards */
.sp-about-text.article-content ol.wo-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-about-text.article-content ol.wo-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #16161C;
  border: 1.5px solid #25252F;
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  margin-bottom: 0;
  color: #D0CFE0;
  font-size: 0.9375rem;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.sp-about-text.article-content ol.wo-list li:hover {
  border-color: #7C5CFC;
  background: #1C1C24;
  transform: translateX(3px);
}

.sp-about-text.article-content ol.wo-list li.watched {
  border-color: rgba(124, 92, 252, 0.35);
  background: rgba(124, 92, 252, 0.06);
}

.sp-about-text.article-content ol.wo-list li.watched .wo-film-title {
  color: #8A8A9A;
  text-decoration: line-through;
  text-decoration-color: rgba(124, 92, 252, 0.5);
}

/* Number badge */
.wo-num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #1E1E28;
  border: 1.5px solid #2A2A36;
  color: #6B6A80;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.watched .wo-num {
  background: #7C5CFC;
  border-color: #7C5CFC;
  color: #fff;
}

/* Film title wrapper */
.wo-film-title {
  flex: 1;
  transition: color 0.2s;
}

.wo-film-title strong {
  display: block;
  font-weight: 600;
  color: #F0EFF8;
}

.watched .wo-film-title strong {
  color: #6B6A80;
}

.wo-film-year {
  font-size: 12px;
  color: #5A5A6A;
  font-weight: 500;
  margin-top: 2px;
  display: block;
  font-family: 'JetBrains Mono', monospace;
}

/* Checkmark */
.wo-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1.5px solid #2A2A36;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  color: transparent;
}

.wo-check svg {
  transition: opacity 0.2s;
  opacity: 0;
}

.watched .wo-check {
  background: #7C5CFC;
  border-color: #7C5CFC;
  color: #fff;
}

.watched .wo-check svg {
  opacity: 1;
}

/* Hint text below first list */
.wo-hint {
  font-size: 12px;
  color: #5A5A6A;
  text-align: center;
  margin-top: -6px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Reset button */
#wo-reset-btn {
  background: none;
  border: 1px solid #2A2A36;
  border-radius: 6px;
  color: #5A5A6A;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

#wo-reset-btn:hover {
  border-color: #7C5CFC;
  color: #b49fff;
}

/* Mobile */
@media (max-width: 600px) {
  .sp-about-text.article-content ol.wo-list li {
    padding: 11px 12px;
    gap: 10px;
  }
  .wo-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 10px;
  }
}
