/* Trending Series widget – theme-switch aware */
.widget_trending_series_widget{
  --tsw-title-accent: var(--brand); /* left border of title */
  --tsw-accent: #e91e63;            /* rank badge + hover accent */
}

.widget_trending_series_widget .widget-title{
  color: #07a1ff;
  font-weight: 700;
  font-size: 18px;
  border-left: 5px solid color-mix(in srgb, var(--tsw-title-accent) 90%, #000 10%);
  padding-left: 15px;
  margin-bottom: 15px;
}

.tsw-sidebar-list{ list-style: none; margin: 0; padding: 0; }

.tsw-sidebar-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.tsw-sidebar-item:last-child{ border-bottom: 0; }

.tsw-thumb{ width: 15%; min-width: 52px; flex-shrink: 0; position: relative; }
.tsw-thumb img{
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  background: var(--base-3);
}

.tsw-rank{
  position: absolute;
  top: -5px; left: -5px;
  background: var(--tsw-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
}

.tsw-info{ width: 85%; padding-left: 0; }

.tsw-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.tsw-title:hover{ color: color-mix(in srgb, var(--tsw-accent) 85%, #000 15%); }
.tsw-title:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--tsw-accent) 70%, #fff 30%);
  outline-offset: 2px;
  border-radius: 4px;
}

.tsw-rating{ font-size: 12px; color: var(--treding-muted); margin-bottom: 2px; }

.tsw-genres{
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tsw-genres a{ color: inherit; text-decoration: none; }
.tsw-genres a:hover{ color: color-mix(in srgb, var(--tsw-accent) 85%, #000 15%); text-decoration: underline; }

@media (max-width: 480px){
  .tsw-thumb{ width: 18%; }
  .tsw-info{ width: 78%; }
}
