:root {
  color-scheme: dark;
  --bg: #090a0b;
  --surface: #111315;
  --surface-raised: #181a1d;
  --surface-hover: #202327;
  --ink: #f5f6f7;
  --muted: #a1a5ab;
  --soft: #292c30;
  --line: #303338;
  --accent: #d8ff43;
  --accent-ink: #101207;
  --accent-soft: #292f15;
  --shadow: 0 14px 40px #0007;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
.nl-topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
  padding: .45rem clamp(1rem, 3.2vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: #090a0bf2;
  backdrop-filter: blur(16px);
}
.nl-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  text-decoration: none;
}
.nl-brand img {
  display: block;
  width: 4.9rem;
  height: 3.15rem;
  object-fit: contain;
}
.nl-brand-label {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  white-space: nowrap;
}
.nl-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 7rem;
  min-height: 2.75rem;
  padding: .55rem .95rem;
  border: 1px solid var(--accent);
  border-radius: .45rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nl-search-toggle:hover { background: #e5ff75; }
.nl-search-icon {
  position: relative;
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.nl-search-icon::after {
  position: absolute;
  right: -.38rem;
  bottom: -.25rem;
  width: .4rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(48deg);
  transform-origin: left center;
}
.nl-main {
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: .7rem clamp(1rem, 3.2vw, 3.5rem) 3rem;
}
.nl-filters {
  display: grid;
  grid-template-columns: minmax(13rem, 1.6fr) repeat(3, minmax(8rem, 1fr)) auto;
  align-items: end;
  gap: .65rem;
  margin: .4rem 0 .6rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.nl-filters[hidden], .nl-specific-date[hidden] { display: none; }
.nl-search-field, .nl-filter { display: grid; min-width: 0; gap: .35rem; }
.nl-search-field > span, .nl-filter > span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.nl-search-field input, .nl-filter select, .nl-filter input {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #0c0d0f;
  color: var(--ink);
  font-size: .77rem;
}
.nl-search-field input::placeholder { color: #797d83; }
.nl-search-field input:focus, .nl-filter select:focus, .nl-filter input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.nl-reset, .nl-month-actions button, .nl-dialog-head button, .nl-carousel-actions button {
  min-height: 2.75rem;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: .73rem;
  font-weight: 750;
  cursor: pointer;
}
.nl-reset:hover, .nl-month-actions button:hover, .nl-dialog-head button:hover,
.nl-carousel-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.nl-feed-section { padding: .55rem 0 1.15rem; }
.nl-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .7rem;
}
.nl-section-heading h1, .nl-section-heading h2, .nl-calendar-title-row h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.nl-carousel-actions { display: flex; gap: .4rem; }
.nl-carousel-actions button {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0;
  font-size: 1rem;
}
.nl-carousel-actions button:disabled { opacity: .38; cursor: default; }
.nl-carousel {
  display: grid;
  grid-auto-columns: calc((100% - 3 * .85rem) / 4);
  grid-auto-flow: column;
  gap: .85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .1rem .05rem .75rem;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #55595f #1a1c1f;
  scrollbar-width: thin;
}
.nl-carousel.is-empty { grid-auto-columns: 100%; overflow: visible; padding-bottom: 0; }
.nl-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .52rem;
  background: var(--surface);
  box-shadow: 0 5px 16px #0004;
  scroll-snap-align: start;
}
.nl-poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 15%, #d8ff4340, transparent 47%),
    linear-gradient(145deg, #282c24, #151719 58%, #28211a);
}
.nl-poster::before, .nl-poster::after {
  position: absolute;
  border: 1px solid #d8ff4333;
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg) scaleY(.55);
}
.nl-poster::before { width: 78%; height: 150%; }
.nl-poster::after { width: 45%; height: 100%; border-color: #d8ff4380; transform: rotate(31deg) scaleY(.65); }
.nl-poster-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-poster-fallback { color: #e3f5ad; font-size: .62rem; font-weight: 850; letter-spacing: .16em; }
.nl-date-badge {
  position: absolute;
  z-index: 1;
  top: .55rem;
  left: .55rem;
  display: grid;
  min-width: 2.6rem;
  gap: .08rem;
  padding: .38rem .45rem;
  border: 1px solid #ffffff24;
  border-radius: .35rem;
  background: #0a0b0de8;
  color: var(--ink);
  text-align: center;
}
.nl-date-badge strong { font: 850 .9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nl-date-badge span { color: var(--accent); font-size: .52rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.nl-promotional {
  position: absolute;
  z-index: 1;
  top: .55rem;
  right: .55rem;
  padding: .3rem .45rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .55rem;
  font-weight: 800;
}
.nl-card-body { padding: .7rem .75rem .78rem; }
.nl-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .45rem; color: var(--accent); font-size: .59rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.nl-card-meta .nl-verified { overflow: hidden; color: var(--muted); font-size: .54rem; font-weight: 600; letter-spacing: 0; text-align: right; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.nl-card h3 { margin: .45rem 0 .42rem; font-size: 1rem; font-weight: 780; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.nl-title-link { color: inherit; text-decoration: none; }
.nl-title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.nl-event-time { margin: 0; color: #e6e7e8; font-size: .72rem; font-weight: 720; line-height: 1.4; }
.nl-venue { display: flex; gap: .35rem; margin: .3rem 0 0; color: var(--muted); font-size: .69rem; line-height: 1.35; overflow-wrap: anywhere; }
.nl-venue span { color: var(--accent); }
.nl-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.nl-price { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 850; }
.nl-price.is-stale { color: var(--muted); font-weight: 600; }
.nl-card-actions { display: flex; align-items: center; gap: .4rem; }
.nl-ticket, .nl-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .4rem .55rem;
  border-radius: .35rem;
  font-size: .63rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nl-ticket { background: var(--accent); color: var(--accent-ink); }
.nl-ticket:hover { background: #e5ff75; }
.nl-source { border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); }
.nl-source:hover { border-color: var(--accent); }
.nl-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 6rem;
  align-content: center;
  gap: .3rem;
  padding: 1rem;
  border: 1px dashed #3b3e42;
  border-radius: .5rem;
  background: #101214;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}
.nl-empty strong { color: var(--ink); font-size: .82rem; }
.nl-section-separator { height: 1px; margin: .55rem 0 1.6rem; border: 0; background: var(--line); }
.nl-calendar-panel { width: 100%; padding-bottom: .8rem; }
.nl-calendar-title-row { margin-bottom: .85rem; }
.nl-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.nl-calendar-head h3 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 780; }
.nl-month-actions { display: flex; gap: .4rem; }
.nl-weekdays, .nl-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.nl-weekdays { margin-bottom: .3rem; }
.nl-weekdays span { padding: .4rem .3rem; color: var(--muted); font-size: .59rem; font-weight: 850; letter-spacing: .08em; text-align: center; }
.nl-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(4.6rem, 9.6vw, 9.2rem);
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.nl-day:hover { border-color: #778045; background: var(--surface-hover); }
.nl-day.is-outside { color: #777c81; background: #0d0e10; }
.nl-day.is-today { border-color: var(--accent); }
.nl-day-number { font-size: .9rem; font-weight: 800; }
.nl-day-count { display: grid; width: 1.4rem; height: 1.4rem; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .61rem; font-weight: 800; }
.nl-status { margin: .8rem 0 0; color: #ff9387; font-size: .75rem; }
.nl-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3.2vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; }
.nl-day-dialog, .nl-event-dialog {
  width: min(94vw, 620px);
  max-height: min(82vh, 760px);
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #111315;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.nl-day-dialog::backdrop, .nl-event-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
.nl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.nl-kicker { margin: 0 0 .25rem; color: var(--accent); font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.nl-dialog-head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.035em; }
.nl-dialog-head button { width: 2.5rem; padding: 0; font-size: 1.4rem; line-height: 1; }
.nl-day-events { display: grid; gap: .65rem; max-height: calc(min(82vh, 760px) - 6rem); overflow: auto; padding: .8rem .15rem .1rem; }
.nl-day-card { padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.nl-day-card h3 { margin: 0 0 .35rem; font-size: .95rem; }
.nl-day-card p { margin: .2rem 0; color: #c2c5c8; font-size: .72rem; line-height: 1.45; }
.nl-day-card .nl-day-time { color: var(--accent); font-weight: 800; }
.nl-event-details { max-height: calc(min(82vh, 760px) - 5rem); overflow: auto; padding-top: .9rem; }
.nl-detail-poster { display: block; width: 100%; max-height: 16rem; object-fit: cover; border-radius: .5rem; background: var(--soft); }
.nl-detail-time { margin: .8rem 0 .35rem; color: var(--accent); font-size: .85rem; font-weight: 800; line-height: 1.45; }
.nl-detail-line { margin: .3rem 0; color: #c2c5c8; font-size: .78rem; line-height: 1.45; }
.nl-detail-promo { display: inline-block; margin: .4rem 0; padding: .3rem .5rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .62rem; font-weight: 800; }
.nl-detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.nl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1000px) {
  .nl-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nl-search-field { grid-column: 1 / -1; }
  .nl-carousel { grid-auto-columns: calc((100% - 2 * .75rem) / 3); gap: .75rem; }
}
@media (max-width: 660px) {
  .nl-topbar { min-height: 3.8rem; }
  .nl-brand { gap: .55rem; }
  .nl-brand img { width: 4.25rem; height: 2.8rem; }
  .nl-brand-label { font-size: .66rem; letter-spacing: .08em; }
  .nl-main { padding-top: .5rem; }
  .nl-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .65rem; }
  .nl-search-field { grid-column: 1 / -1; }
  .nl-search-field input, .nl-filter select, .nl-filter input { height: 2.5rem; font-size: .7rem; }
  .nl-reset { justify-self: start; min-height: 2.5rem; }
  .nl-section-heading { margin-bottom: .55rem; }
  .nl-brand-label { display: none; }
  .nl-search-toggle { min-height: 2.75rem; }
  #nl-popular-row { grid-auto-columns: calc((100% - .9rem) / 3); gap: .45rem; }
  #nl-recent-row { grid-auto-columns: calc((100% - 1.05rem) / 4); gap: .35rem; }
  .nl-carousel { padding-bottom: .55rem; }
  .nl-card-body { padding: .42rem; }
  .nl-card-meta { align-items: flex-start; flex-direction: column; gap: .12rem; font-size: .52rem; }
  .nl-card-meta .nl-verified { display: none; }
  .nl-poster-fallback { display: none; }
  .nl-promotional { top: auto; right: auto; bottom: .35rem; left: .35rem; max-width: calc(100% - .7rem); overflow: hidden; padding: .2rem .3rem; font-size: .45rem; text-overflow: ellipsis; white-space: nowrap; }
  .nl-card h3 { min-height: 2.8rem; margin: .25rem 0 0; font-size: .65rem; line-height: 1.2; overflow-wrap: anywhere; }
  .nl-card h3 a { display: block; min-height: 2.8rem; padding: .25rem 0; }
  .nl-poster { aspect-ratio: .92 / 1; }
  .nl-event-time, .nl-venue { display: none; }
  .nl-card-bottom { display: none; }
  .nl-card-actions { width: 100%; justify-content: space-between; }
  .nl-ticket { flex: 1; min-height: 2.75rem; padding: .35rem .4rem; font-size: .58rem; }
  .nl-source { min-height: 2.75rem; font-size: .57rem; }
  .nl-calendar-head { align-items: flex-start; }
  .nl-month-actions button { min-height: 2.75rem; padding: 0 .65rem; font-size: .67rem; }
  .nl-weekdays, .nl-calendar-grid { gap: .18rem; }
  .nl-weekdays span { padding: .35rem 0; font-size: .5rem; }
  .nl-day { min-height: 3.5rem; gap: .25rem; padding: .32rem; border-radius: .25rem; }
  .nl-day-number { font-size: .68rem; }
  .nl-day-count { padding: .14rem .2rem; font-size: .45rem; }
  .nl-day-count { width: 1.2rem; height: 1.2rem; font-size: .53rem; }
  .nl-footer { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .nl-day-dialog, .nl-event-dialog { position: fixed; right: 0; bottom: 0; left: 0; width: 100%; max-width: none; max-height: 86dvh; margin: 0; padding: 1rem; border-radius: 1rem 1rem 0 0; }
  .nl-day-events { max-height: calc(86dvh - 6rem); }
  .nl-event-details { max-height: calc(86dvh - 5rem); }
}
@media (max-width: 370px) {
  .nl-brand img { width: 3.7rem; }
  .nl-brand-label { font-size: .59rem; }
  .nl-search-toggle { min-width: 6rem; padding-inline: .7rem; font-size: .69rem; }
  #nl-popular-row { grid-auto-columns: calc((100% - .7rem) / 3); gap: .35rem; }
  #nl-recent-row { grid-auto-columns: calc((100% - .8rem) / 4); gap: .26rem; }
  .nl-day { min-height: 3.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html, .nl-carousel { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
