/* Discovery and favorites UX refinements inspired by stream-directory patterns. */

/* Keep the discovery mode switch reachable while browsing a long result list. */
.page-layout--grid > .discovery-nav {
  position: sticky;
  top: 0;
  z-index: 9;
  margin: -8px 0 22px;
  padding: 10px 0 12px;
  background: rgba(250, 250, 250, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Favorites are organized by current state instead of one mixed directory grid. */
.favorites-status-groups {
  display: grid;
  gap: 34px;
  margin-top: 22px;
}

.favorites-status-group {
  min-width: 0;
}

.favorites-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e4e5e9;
}

.favorites-status-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .025em;
}

.favorites-status-head h3::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #8b919d;
}

.favorites-status-group--live .favorites-status-head h3::before {
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(235, 0, 101, .10);
}

.favorites-status-group--upcoming .favorites-status-head h3::before {
  background: var(--yellow);
  border: 1px solid #d4c500;
}

.favorites-status-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.favorites-status-grid {
  margin: 0;
}

@media (max-width: 760px) {
  .page-layout--grid > .discovery-nav {
    margin: -8px -16px 18px;
    padding: 9px 16px 11px;
    scrollbar-width: none;
  }

  .page-layout--grid > .discovery-nav::-webkit-scrollbar {
    display: none;
  }

  .favorites-status-groups {
    gap: 28px;
    margin-top: 18px;
  }

  .favorites-status-head h3 {
    font-size: 19px;
  }
}
