.filter-row,
.season-tabs {
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar,
.season-tabs::-webkit-scrollbar {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(166, 202, 218, .08) 49%, transparent 50%),
    radial-gradient(circle at 10% 25%, rgba(255, 255, 255, .32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 68%, rgba(255, 255, 255, .2) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 7rem 7rem, 11rem 11rem;
  z-index: -1;
}

body {
  background:
    linear-gradient(90deg, rgba(7, 11, 17, .98) 0%, rgba(7, 11, 17, .93) 42%, rgba(7, 11, 17, .7) 72%, rgba(7, 11, 17, .48) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, .2) 0%, rgba(8, 12, 18, .78) 72%, #080c12 100%),
    url("assets/westeros-background-v1.png") center top / cover fixed no-repeat,
    var(--bg);
}

.main {
  background: linear-gradient(180deg, rgba(7, 11, 17, .02), rgba(7, 11, 17, .42) 36rem, rgba(7, 11, 17, .86) 78rem);
}

.category-group {
  display: grid;
  gap: .2rem;
  padding: .45rem 0 .65rem;
}

.category-group + .category-group {
  border-top: 1px solid var(--line);
  margin-top: .25rem;
  padding-top: .85rem;
}

.category-group h3 {
  margin: .25rem .7rem .45rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-group .entity-button {
  align-items: start;
  width: 100%;
  line-height: 1.35;
}

.category-group .entity-button span {
  overflow-wrap: anywhere;
}

.category-article-search {
  margin-bottom: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}

.category-article-search:focus-within {
  border-color: var(--ice);
}

.category-layout .results-panel {
  min-width: 0;
}

#categoryTitle {
  scroll-margin-top: 5.5rem;
}

.category-layout .article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) and (min-width: 761px) {
  .category-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .category-layout .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .category-layout .article-grid {
    grid-template-columns: 1fr;
  }
}

/* Branded navigation */
.brand {
  gap: .65rem;
  padding: .15rem .35rem 1.45rem;
}

.brand-mark {
  display: block;
  width: 3.65rem;
  height: 3.65rem;
  flex: 0 0 3.65rem;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 .35rem .55rem rgba(0, 0, 0, .5));
}

.brand strong {
  font-size: 1.08rem;
  color: #f4ead8;
}

.brand span {
  color: #93a6b6;
}

.nav {
  gap: .55rem;
}

.nav-item {
  position: relative;
  min-height: 3.15rem;
  overflow: hidden;
  border: 1px solid rgba(91, 111, 129, .34);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .035), transparent 42%),
    linear-gradient(180deg, #151f2b, #0f1721);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 .3rem .7rem rgba(0, 0, 0, .12);
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: .38rem;
  pointer-events: none;
  border: 1px solid rgba(196, 157, 91, .08);
  border-radius: .52rem;
}

.nav-item:hover {
  border-color: rgba(142, 201, 218, .45);
  background: linear-gradient(145deg, #1b2938, #111a25);
}

.nav-item.active {
  border-color: rgba(208, 166, 96, .65);
  background:
    radial-gradient(circle at 12% 50%, rgba(213, 170, 97, .18), transparent 36%),
    linear-gradient(145deg, #263444, #17212d);
  box-shadow: inset 3px 0 #d4aa67, inset 0 1px rgba(255, 255, 255, .06), 0 .45rem 1rem rgba(0, 0, 0, .18);
}

.nav-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  background: linear-gradient(145deg, #d9b56f, #7fc4da);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  filter: drop-shadow(0 0 .35rem rgba(127, 196, 218, .18));
}

.nav-icon-search {
  -webkit-mask-image: url("assets/nav-search.svg");
  mask-image: url("assets/nav-search.svg");
}

.nav-icon-characters {
  -webkit-mask-image: url("assets/nav-characters.svg");
  mask-image: url("assets/nav-characters.svg");
}

.nav-icon-categories {
  -webkit-mask-image: url("assets/nav-categories.svg");
  mask-image: url("assets/nav-categories.svg");
}

.sidebar-footer {
  gap: .32rem;
}

.sidebar-about {
  margin: 0 0 .6rem;
  padding: .62rem .72rem;
  border: 1px solid rgba(91, 111, 129, .45);
  border-radius: .65rem;
  background: rgba(18, 28, 39, .72);
  color: #c6d0d8;
  font: inherit;
  font-size: .78rem;
  text-align: left;
  cursor: pointer;
}

.sidebar-about:hover {
  color: #fff;
  border-color: rgba(212, 170, 103, .62);
}

.floating-menu {
  display: none;
}

.card-footer {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .floating-menu {
    position: fixed;
    z-index: 14;
    top: max(.7rem, env(safe-area-inset-top));
    left: .75rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-color: rgba(212, 170, 103, .48);
    background: rgba(11, 17, 25, .9);
    box-shadow: 0 .55rem 1.4rem rgba(0, 0, 0, .32);
    backdrop-filter: blur(12px);
  }

  .view {
    padding-top: 4.65rem;
  }

  .brand-mark {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
  }

  body {
    background:
      linear-gradient(90deg, rgba(7, 11, 17, .9), rgba(7, 11, 17, .72)),
      linear-gradient(180deg, rgba(8, 12, 18, .2), #080c12 45rem),
      url("assets/westeros-background-v1.png") 68% top / auto 42rem no-repeat,
      var(--bg);
  }
}
