/* Streaming tile */
.tile-streaming .tile-header h2 { color: var(--purple); }
.tile-streaming .tile-header { cursor: pointer; user-select: none; transition: background 0.15s; }
.tile-streaming .tile-header:hover { background: var(--surface2); }
.tile-streaming .tile-badge { background: var(--purple-bg); color: var(--purple); }

/* Detail section (three-state toggle) */
.streaming-detail { display: none; }
.streaming-detail.open { display: block; }

/* Tabs */
.streaming-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.streaming-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s;
}
.streaming-tab:hover { color: var(--text); }
.streaming-tab.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* Show cards */
.show-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.show-card:hover { background: var(--surface2); }
.show-card:last-child { border-bottom: none; }
.show-poster {
  width: 48px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}
.show-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.show-title {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show-meta {
  font-size: 0.62rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.show-rating {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
}
.show-year {
  font-size: 0.62rem;
  color: var(--text-dim);
}
.show-type-badge {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 0.06rem 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface2);
  color: var(--text-dim);
}
.show-overview {
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.show-platforms {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.show-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

/* Watchlist star */
.watchlist-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.15s;
}
.watchlist-star:hover { color: var(--gold); }
.watchlist-star.active { color: var(--gold); }

/* Platform badges */
.platform-badge {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.platform-badge.p-netflix { background: #e5000420; color: #e50004; }
.platform-badge.p-disney { background: #113ccf20; color: #6b8bef; }
.platform-badge.p-prime { background: #00a8e120; color: #00a8e1; }
.platform-badge.p-apple { background: var(--surface2); color: var(--text-dim); }
.platform-badge.p-mubi { background: #00000020; color: var(--text); }
.platform-badge.p-paramount { background: #0064ff20; color: #4d94ff; }

/* Genre filter chips */
.streaming-genre-filters {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.streaming-genre-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s;
}
.streaming-genre-btn.active {
  background: var(--purple-bg);
  border-color: var(--purple);
  color: var(--purple);
}

/* Browse controls */
.streaming-browse-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.streaming-sort-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s;
}
.streaming-sort-btn.active {
  background: var(--purple-bg);
  border-color: var(--purple);
  color: var(--purple);
}
.streaming-platform-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.65rem;
  padding: 0.22rem 0.4rem;
  cursor: pointer;
}
.streaming-platform-select:focus {
  border-color: var(--purple);
  outline: none;
}

/* Actor search */
.actor-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.actor-search-input:focus {
  border-color: var(--purple);
}
.actor-search-input::placeholder {
  color: var(--text-dim);
}
.actor-result-item {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: background 0.15s;
}
.actor-result-item:hover { background: var(--surface2); }
.actor-result-desc {
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* Actor header */
.actor-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.actor-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
}
.actor-name {
  font-size: 0.85rem;
  font-weight: 700;
}
.actor-back-btn {
  background: none;
  border: none;
  color: var(--purple);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0;
}
.actor-back-btn:hover { text-decoration: underline; }

/* Filmography items */
.filmography-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}
.filmography-item:last-child { border-bottom: none; }
.filmography-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filmography-year {
  font-size: 0.6rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.filmography-type {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.06rem 0.25rem;
  border-radius: 3px;
  background: var(--surface2);
  color: var(--text-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}
.filmography-platforms {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}
.filmography-checking {
  font-size: 0.55rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Watchlist items */
.watchlist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.watchlist-item:last-child { border-bottom: none; }
.watchlist-poster {
  width: 36px;
  height: 54px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}
.watchlist-info {
  flex: 1;
  min-width: 0;
}
.watchlist-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watchlist-meta {
  font-size: 0.6rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Setup prompt */
.streaming-setup {
  text-align: center;
  padding: 1.2rem 0.5rem;
}
.streaming-setup-title {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.streaming-setup-text {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

/* Budget indicator */
.streaming-budget {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--surface2);
  display: inline-block;
}
.streaming-budget.green { color: var(--green); }
.streaming-budget.orange { color: var(--orange); }
.streaming-budget.red { color: var(--red); }
.streaming-budget.limit-reached {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid var(--red);
  padding: 0.2rem 0.5rem;
}

/* Per-film check button */
.filmography-check-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.filmography-check-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Limit lock icon on filmography items */
.filmography-limit {
  font-size: 0.55rem;
  opacity: 0.4;
}

/* Attribution footer */
.streaming-attribution {
  font-size: 0.58rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
.streaming-attribution a {
  color: var(--purple);
  text-decoration: none;
}
.streaming-attribution a:hover { text-decoration: underline; }

/* Config panel — region toggle (reuse shopping market pattern) */
.streaming-region-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.streaming-region-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
}
.streaming-region-btn.active {
  background: var(--purple-bg);
  color: var(--purple);
}

/* Config — platform checkboxes */
.streaming-platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.streaming-platform-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.streaming-platform-check input {
  accent-color: var(--purple);
}

/* Config — API key input */
.streaming-key-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.72rem;
  outline: none;
  transition: border-color 0.2s;
}
.streaming-key-input:focus {
  border-color: var(--purple);
}

/* Empty state */
.streaming-empty {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Load more */
.streaming-load-more {
  display: block;
  margin: 0.6rem auto 0;
  padding: 0.35rem 1.2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.streaming-load-more:hover {
  border-color: var(--purple);
  color: var(--purple);
}
