:root {
  --black: #000000;
  --white: #ffffff;
  --yellow: #dfff3f;
  --pink: #ff2d98;
  --violet: #c9abff;
  --bg: var(--black);
  --ink: var(--white);
  --muted: #b3b3b3;
  --card: #111111;
  --line: #2a2a2a;
  --search-h: 7rem;
  --radius: 1.15rem;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Anybody", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 480px at 8% -12%, rgba(223, 255, 63, 0.1), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(255, 45, 152, 0.1), transparent 48%),
    radial-gradient(700px 360px at 80% 100%, rgba(201, 171, 255, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.15rem;
}

.logo {
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  display: block;
  width: 168px;
  height: auto;
}

.header-copy {
  min-width: 0;
}

.wordmark {
  margin: 0 0 0.15rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  font-stretch: 137%;
  font-variation-settings: "wdth" 137;
  letter-spacing: -0.04em;
  color: var(--yellow);
}

h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tagline {
  position: relative;
  display: inline-block;
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 0;
}

.tagline::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.15em;
  bottom: 0.05em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 85%);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem 0.95rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.search-panel label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

body.is-idle .search-panel {
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: none;
}

body.is-idle .search-panel label {
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  font-stretch: 137%;
  font-variation-settings: "wdth" 137;
  letter-spacing: -0.04em;
  color: var(--yellow);
  line-height: 1.1;
}

#likes {
  display: block;
  width: 100%;
  min-height: 4.2em;
  max-height: 8.4em;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #0d0d0d;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  resize: none;
  overflow: hidden;
}

body.is-idle #likes {
  min-height: 8.4em;
  max-height: 14em;
  padding: 1.1rem 1.2rem;
  border: 2px solid var(--yellow);
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px rgba(223, 255, 63, 0.12);
}

#likes::placeholder {
  color: #6e6e6e;
}

body.is-idle #likes::placeholder {
  color: #8a8a8a;
}

#likes:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(223, 255, 63, 0.2);
}

body.is-idle #likes:focus {
  box-shadow: 0 0 0 10px rgba(223, 255, 63, 0.16);
}

.search-toolbar {
  display: flex;
  align-items: center;
  margin-top: 0.7rem;
}

.search-toolbar[hidden] {
  display: none;
}

body.is-idle .search-toolbar {
  display: none;
}

.sort-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
}

.sort-label {
  margin-right: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.sort-btn {
  padding: 0.22rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.sort-btn.is-active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.sort-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 255, 63, 0.22);
}

.empty-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 2.25rem auto 0;
  max-width: 36rem;
  text-align: center;
}

.empty-arrow {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 0.85rem;
  border-left: 4px solid var(--yellow);
  border-top: 4px solid var(--yellow);
  animation: arrowNudge 1.1s ease-in-out infinite;
}

.empty-sub {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}

@keyframes arrowNudge {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-14px) rotate(45deg);
  }
}

.status {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.day-group {
  margin-top: 1.75rem;
}

.day-heading {
  position: sticky;
  top: var(--search-h);
  z-index: 10;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0 -1.25rem 1rem;
  padding: 0.65rem 1.25rem 0.55rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.day-kicker {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 137%;
  font-variation-settings: "wdth" 137;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.day-heading.is-special .day-kicker {
  color: var(--yellow);
}

.day-heading:not(.is-special) .day-kicker::after {
  content: ",";
}

.day-date {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.day-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.event {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.event:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.event.is-top-match {
  border-color: rgba(223, 255, 63, 0.38);
  box-shadow: inset 3px 0 0 var(--yellow);
}

a.event.is-top-match:hover {
  box-shadow: inset 3px 0 0 var(--yellow), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.event-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(223, 255, 63, 0.18), rgba(255, 45, 152, 0.14) 50%, rgba(201, 171, 255, 0.12));
}

.event-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem 0.95rem 1rem;
}

.event-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.event-meta {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
}

.event-desc {
  margin: 0.15rem 0 0;
  color: #d4d4d4;
  font-size: 0.9rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.categories li {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #1c1c1c;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.categories li:nth-child(3n + 2) {
  color: var(--pink);
}

.categories li:nth-child(3n) {
  color: var(--violet);
}

.event-link {
  margin-top: 0.25rem;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .logo img {
    width: 148px;
  }

  .day-list {
    grid-template-columns: 1fr;
  }
}
