/* ── Watched panel ── */
.panel-watched { min-width: 0; }

.watched-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watched-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  transition: background 0.15s;
}

.watched-item:hover { background: #242436; }

.watched-item img {
  width: 36px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--border);
}

.watched-item .wi-ph {
  width: 36px;
  height: 54px;
  background: var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.3;
}

.watched-info {
  flex: 1;
  min-width: 0;
}

.watched-info strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watched-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.watched-review-badge {
  font-size: 0.65rem;
  color: #f59e0b;
  white-space: nowrap;
  flex-shrink: 0;
}

.unwatch-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.unwatch-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

/* ── Review Modal ── */
.just-watched-banner {
  background: rgba(192,132,252,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.review-movie-year {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

.review-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-row label {
  width: 90px;
  flex-shrink: 0;
  margin: 0;
}

.review-row-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.review-row-col label { width: auto; }

.review-row select {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

#review-text {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
  margin: 0;
}

#review-text:focus {
  outline: none;
  border-color: var(--accent);
}

.star-picker {
  display: flex;
  gap: 0.1rem;
}

.star-slot {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  width: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.star-bg {
  display: block;
  color: var(--border);
  user-select: none;
}

.star-fg {
  position: absolute;
  top: 0;
  left: 0;
  color: #f59e0b;
  overflow: hidden;
  white-space: nowrap;
  width: 0%;
  display: block;
  pointer-events: none;
  transition: width 0.06s;
}

.star-hl {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 2;
}
.star-hl-left  { left: 0; }
.star-hl-right { right: 0; }

.review-thread {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.review-comment {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}

.review-comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.review-comment-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.review-comment-stars {
  font-size: 0.85rem;
  color: #f59e0b;
  letter-spacing: 0.05em;
}

.review-comment-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.review-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
