.main-search-genre-list,
.genre-archive-wrapper,
#az-list-page,
#schedule-page,
#completed-anime-page{ width:100%; padding: 15px; }

/* ===== Series Grid + Card (switch-aware) ===== */
.series-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:20px;
  margin:0;
}
.series-item{
  background:var(--base-2);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  position:relative;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.series-item:hover{
  transform:translateY(-5px);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* Thumbnail */
.series-thumb,
.series-thumb img{
  display:block;
  border-radius:10px;
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  position:relative;
  overflow:hidden;
  background:var(--base-3);
}

/* Badges */
.status-badge{
  position:absolute; top:18px; left:-30px;
  background:#e53935; color:#fff; font-size:12px; font-weight:700;
  padding:4px 30px; transform:rotate(-45deg);
  text-align:center; box-shadow:0 2px 5px rgba(0,0,0,.2); z-index:2;
}
.ep-badge, .year-badge, .score-badge{
  position:absolute; font-size:12px; padding:2px 6px; border-radius:4px; font-weight:700; z-index:2;
}
.series-item .ep-badge{
  top:8px; right:8px;
  background:linear-gradient(39deg,#fecf59,#fff1cc); color:#0b1bf9; font-weight:800;
}
/* Subtle chip that works on both themes */
.year-badge{
  bottom:8px; left:8px;
  background:color-mix(in srgb, #d11717 85%, var(--bg) 15%);
  color:var(--text);
}
.score-badge{ bottom:8px; right:8px; background:rgb(0 18 255); color:#ffe205; }

/* Title */
.series-title{
  margin:10px;
  font-size:14px;
  font-weight:600;
  text-align:center;
  line-height:1.4;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  height:2.8em;
}
.series-title a{ text-decoration:none; color:inherit; }
.series-title a:hover{ color:color-mix(in srgb, var(--brand) 85%, #000 15%); }

/* Responsive columns */
@media (max-width:440px){
  .series-list{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
}
@media (max-width:380px){
  .series-list{ grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); }
}

/* Widget-specific */
.widget_completed_series_widget .series-list{ margin:0; }

/* ===== Completed Page Header ===== */
.completed-header{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  background:var(--base-3,transparent);
  margin-bottom:15px;
}
.completed-header h2{ margin:0; }

.completed-anime-title,
.az-list-anime-title,
.schedule-anime-title{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  font-size:clamp(1.5rem,2.5vw + .5rem,2rem);
  font-weight:900;
  background:linear-gradient(to right,#ff4e50,#f9d423);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-transform:uppercase;
  gap:10px; margin:10px auto 20px; position:relative;
}

/* ===== A–Z List Page ===== */
.az-list-header{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-bottom:20px; }
.az-filter{
  display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-top:10px;
}
.az-filter a{
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--base-3);
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  transition:.2s ease;
}
.az-filter a.active,
.az-filter a:hover{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* ===== Schedule Page ===== */
.schedule-header{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-bottom:20px; }
.schedule-filter{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:10px; margin-bottom:20px; padding:10px;
}
.schedule-filter a{
  padding:6px 14px;
  border:1px solid var(--line);
  border-radius:20px;
  text-decoration:none;
  color:var(--text);
  background:var(--base-3);
  white-space:nowrap;
  transition:.2s ease;
}
.schedule-filter a.active,
.schedule-filter a:hover{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

.schedule-short{ display:none; }
.schedule-full{ display:inline; }
@media (max-width:768px){
  .schedule-short{ display:inline; }
  .schedule-full{ display:none; }
}
