:root {
  --all-series-pink: #ff2f92;
  --all-series-cyan: #22d3ee;
  --all-series-panel: rgba(8, 11, 17, 0.92);
}

html,
body.all-series-body {
  max-width: 100%;
  overflow-x: clip;
}

.all-series-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #22d3ee;
  color: #07101e;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.all-series-skip:focus {
  transform: translateY(0);
}

body.all-series-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% -12%, rgba(255, 47, 146, 0.13), transparent 31%),
    radial-gradient(circle at 92% 2%, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(180deg, #07090e 0%, #090c13 48%, #07090e 100%);
}

.all-series-wrap {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 14px 18px 30px;
}

.all-series-topbar {
  margin: 0 0 16px;
}

.all-series-main {
  min-width: 0;
}

.all-series-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  min-height: 210px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(95deg, rgba(5, 8, 13, 0.94) 2%, rgba(12, 13, 23, 0.82) 58%, rgba(22, 8, 19, 0.68)),
    radial-gradient(circle at 82% 40%, rgba(255, 47, 146, 0.32), transparent 34%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.all-series-masthead::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -150px;
  width: 460px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 47, 146, 0.04), 0 0 0 96px rgba(34, 211, 238, 0.025);
  content: "";
}

.all-series-eyebrow {
  margin: 0 0 7px;
  color: #ff73b3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.all-series-masthead h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
}

.all-series-masthead p:not(.all-series-eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: #aab6c7;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.all-series-latest-link {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 47, 146, 0.45);
  border-radius: 999px;
  background: rgba(255, 47, 146, 0.12);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.all-series-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 0;
  color: #657186;
  font-size: 13px;
}

.all-series-breadcrumb a { color: #aeb9ca; text-decoration: none; }
.all-series-breadcrumb strong { color: #dce4ef; font-weight: 400; }

.all-series-catalog {
  margin-top: 12px;
}

.all-series-catalog .index-catalog-controls {
  position: sticky;
  top: 8px;
  z-index: 30;
  border-color: rgba(148, 163, 184, 0.19);
  background: rgba(8, 11, 17, 0.93);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.all-series-catalog[data-catalog-mode="search-only"] .index-catalog-selects,
.all-series-catalog[data-catalog-mode="search-only"] [data-catalog-quick],
.all-series-catalog[data-catalog-mode="search-only"] [data-catalog-genres],
.all-series-catalog[data-catalog-mode="search-only"] [data-catalog-active] {
  display: none;
}

.all-series-catalog[data-catalog-mode="search-only"] .index-catalog-search {
  width: 100%;
}

.all-series-catalog .index-catalog-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.all-series-catalog .index-catalog-card {
  background: linear-gradient(180deg, rgba(12, 15, 21, 0.98), rgba(6, 8, 12, 0.98));
}

.all-series-catalog .index-catalog-card:focus-visible,
.all-series-latest-link:focus-visible,
.all-series-topbar a:focus-visible,
.all-series-topbar button:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.all-series-noscript {
  padding: 20px;
  border: 1px solid #303846;
  border-radius: 14px;
  color: #cbd5e1;
  text-align: center;
}

.all-series-footer {
  margin-top: 34px;
}

@media (max-width: 1360px) {
  .all-series-catalog .index-catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .all-series-catalog .index-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .all-series-masthead { min-height: 190px; }
  .all-series-catalog .index-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .all-series-wrap { padding: 8px 10px 18px; }
  .all-series-topbar { margin-inline: 0 !important; width: 100% !important; }
  .all-series-topbar .navbar-links { display: none; }
  .all-series-topbar .coin-chip { display: none; }
  .all-series-nav-search { order: 4; width: 100%; max-width: none; }
  .all-series-masthead {
    min-height: 178px;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .all-series-masthead h1 { font-size: 38px; }
  .all-series-latest-link { min-height: 42px; }
  .all-series-catalog .index-catalog-controls { top: 4px; }
  .all-series-catalog .index-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-series-footer { margin-bottom: 86px; }
}

@media (max-width: 390px) {
  .all-series-topbar .brand-word { display: none; }
  .all-series-masthead h1 { font-size: 34px; }
  .all-series-catalog .index-catalog-name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .all-series-catalog *, .all-series-latest-link { scroll-behavior: auto !important; transition: none !important; }
}
