@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #101016;
  --surface: #1b1b25;
  --muted: #9695aa;
  --accent: #b5a0ff;
  --line: #ffffff12;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 0, #30244666, transparent 45%), var(--bg);
  color: #f4f1fa;
  font-family: "DM Sans", sans-serif;
  min-height: 100dvh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
}
header {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 23px Outfit;
  text-decoration: none;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  background: var(--accent);
  color: #171022;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-weight: 800;
}
.brand-icon span {
  font-size: 13px;
  position: absolute;
  right: 2px;
  top: 0;
}
.brand-dot {
  color: var(--accent);
  margin-left: -9px;
}
.avatar {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #272432;
  color: var(--accent);
  font-size: 23px;
}
main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 25px 28px 125px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}
h1,
h2,
h3 {
  font-family: Outfit;
  margin: 0;
}
h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1.1;
}
h2 {
  font-size: 23px;
  font-weight: 500;
}
h3 {
  font-size: 20px;
}
.muted,
.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.subtitle {
  margin: 14px 0 24px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}
.group-select {
  max-width: 65%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #211633;
  padding: 13px 19px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.button.secondary {
  background: #ffffff09;
  color: #e2daef;
  border: 1px solid var(--line);
}
.button.danger {
  background: #ff7f8d18;
  color: #ff9da8;
}
.picker-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(ellipse at 90% 20%, #8561d947, transparent 70%),
    linear-gradient(120deg, #282039, #201d2b);
  border: 1px solid #b5a0ff26;
  border-radius: 22px;
  padding: 28px;
  margin: 8px 0 30px;
}
.picker-hero h2 {
  font-size: 26px;
}
.picker-hero p {
  margin: 8px 0 0;
  color: #b5adc5;
  font-size: 13px;
  line-height: 1.6;
}
.picker-hero .button {
  white-space: nowrap;
}
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.pills {
  display: flex;
  gap: 6px;
  background: #ffffff05;
  padding: 4px;
  border-radius: 12px;
}
.pill {
  padding: 9px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.pill.active {
  background: #302b40;
  color: #d6c7ff;
}
.count {
  color: var(--muted);
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
}
.movie-card {
  background: transparent;
  text-align: left;
  padding: 0;
  min-width: 0;
}
.poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #302740, #1c1b26);
  box-shadow: 0 8px 22px #0002;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.movie-card:hover img {
  transform: scale(1.04);
}
.poster-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 45px;
  color: #82769b;
}
.score {
  position: absolute;
  left: 9px;
  bottom: 9px;
  background: #111019dd;
  border: 1px solid #ffffff20;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 11px;
  color: #f6d893;
}
.movie-card h3 {
  font: 500 14px "DM Sans";
  margin: 11px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 44px 20px;
  border: 1px dashed #ffffff22;
  border-radius: 18px;
  text-align: center;
  grid-column: 1/-1;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty .button {
  margin-top: 12px;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #15141feb;
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
  z-index: 5;
}
nav[hidden] {
  display: none;
}
nav button {
  background: none;
  color: #817a95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  font-size: 23px;
}
nav button span {
  font-size: 10px;
  font-weight: 600;
}
nav button.active {
  color: var(--accent);
}
input,
select {
  width: 100%;
  background: #24232f;
  border: 1px solid #ffffff15;
  border-radius: 11px;
  padding: 13px;
  color: #fff;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #b5a0ff88;
}
label {
  display: block;
  font-size: 12px;
  color: #b1a8c0;
  margin-bottom: 7px;
}
.search-row {
  display: flex;
  gap: 10px;
  margin: 24px 0 16px;
}
.filters {
  background: #1b1924;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 0 0 25px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.checkbox input {
  width: auto;
}
.auth {
  max-width: 400px;
  margin: 50px auto;
}
.auth form {
  display: grid;
  gap: 16px;
}
.auth h1 {
  margin-bottom: 18px;
}
.auth .button {
  width: 100%;
}
.auth-switch {
  margin-top: 20px;
  text-align: center;
}
.link-button {
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
}
.group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  background: var(--surface);
  margin-bottom: 12px;
}
.group-open {
  background: none;
  text-align: left;
  flex: 1;
}
.group-open p {
  margin-bottom: 0;
}
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 18px;
  margin: 20px 0;
}
.form-panel form {
  display: flex;
  gap: 10px;
}
.profile {
  max-width: 550px;
}
.profile .button {
  margin: 10px 6px 0 0;
}
dialog {
  background: #1b1925;
  color: #fff;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  max-width: 520px;
  width: calc(100% - 24px);
  padding: 28px;
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 35px 100px #0008;
}
dialog::backdrop {
  background: #07060bcc;
  backdrop-filter: blur(8px);
}
.close {
  position: absolute;
  right: 13px;
  top: 10px;
  background: #0005;
  border-radius: 50%;
  font-size: 27px;
  width: 36px;
  height: 36px;
  z-index: 1;
}
.detail-poster {
  width: 135px;
  border-radius: 13px;
  float: left;
  margin: 0 20px 18px 0;
}
.detail-heading {
  padding-right: 15px;
  padding-top: 10px;
}
.detail-heading h2 {
  font-size: 29px;
}
.overview {
  clear: both;
  color: #bcb4c9;
  line-height: 1.7;
  font-size: 14px;
}
.details-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.provider-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.provider-list img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.picked {
  text-align: center;
}
.picked .detail-poster {
  float: none;
  margin: 18px auto;
  width: 180px;
  display: block;
}
.picked h2 {
  font-size: 28px;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #e5dcff;
  color: #251d32;
  padding: 13px 20px;
  border-radius: 12px;
  z-index: 20;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 8px 30px #0005;
  display: none;
}
.loading {
  color: var(--muted);
  text-align: center;
  padding: 40px;
}
.manual {
  margin: 24px 0;
}
.full {
  width: 100%;
}
@media (max-width: 700px) {
  header {
    padding: 22px 20px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    padding: 18px 20px 115px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .picker-hero {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .picker-hero .button {
    width: 100%;
  }
  .picker-hero h2 {
    font-size: 25px;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav {
    gap: 18px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .button {
    padding: 12px;
    font-size: 12px;
  }
  .group-select {
    font-size: 13px;
  }
  .section-row h2 {
    font-size: 19px;
  }
  .movie-card h3 {
    font-size: 12px;
  }
  .score {
    font-size: 10px;
    left: 6px;
    bottom: 6px;
  }
  .form-panel form {
    flex-direction: column;
  }
  .group-card {
    padding: 16px;
  }
  .group-card .button {
    padding: 10px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
nav svg,
.avatar svg {
  width: 22px;
  height: 22px;
}
.avatar {
  display: grid;
  place-items: center;
}
.button {
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  filter: brightness(1.08);
}
.button:active {
  transform: scale(0.98);
}
.picked {
  animation: reveal 0.3s ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.release-years {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.release-years legend {
  font-size: 12px;
  color: #b1a8c0;
  margin-bottom: 7px;
}
.year-range {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.year-range > div {
  flex: 1;
  min-width: 0;
}
.year-range label {
  font-size: 11px;
  color: var(--muted);
}
.year-range input {
  padding: 10px 8px;
  font-size: 13px;
  appearance: textfield;
}
.year-range > span {
  padding-bottom: 12px;
  color: var(--muted);
}
.streaming-filter {
  grid-column: 1/-1;
}
.service-picker {
  background: #24232f;
  border: 1px solid #ffffff15;
  border-radius: 11px;
}
.service-picker summary {
  padding: 13px;
  cursor: pointer;
  font-size: 14px;
}
.service-options {
  padding: 0 12px 12px;
}
.provider-search {
  margin: 10px 0;
}
.provider-list-options {
  max-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
}
.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  margin: 0;
  color: #e4deed;
  font-size: 13px;
  cursor: pointer;
}
.service-option[hidden] {
  display: none;
}
.service-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.service-option img {
  width: 27px;
  height: 27px;
  border-radius: 6px;
}
.service-option small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.my-services {
  border-bottom: 1px solid var(--line);
}
.form-panel .streaming-profile {
  display: grid;
  gap: 16px;
}
.streaming-profile .service-picker {
  width: 100%;
}
.streaming-profile > div {
  min-width: 0;
}
.year-range input::-webkit-inner-spin-button,
.year-range input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mood-shortcuts {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 6px 0 12px;
  margin-top: 22px;
  scrollbar-width: thin;
}
.mood-chip {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid #ffffff19;
  border-radius: 24px;
  background: #ffffff06;
  color: #c9bfdc;
  font-size: 12px;
}
.mood-chip.active {
  background: #b5a0ff26;
  border-color: var(--accent);
  color: #e4d9ff;
}
.movie-card .added-by {
  font-size: 10px;
  margin-top: 7px;
}
.movie-card .card-note {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  color: #c8bdd9;
}
textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: #fff;
  background: #24232f;
  border: 1px solid #ffffff15;
  border-radius: 11px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
  min-width: 0;
}
textarea:focus {
  outline: 2px solid #b5a0ff88;
}
.details-actions textarea {
  flex-basis: 100%;
}
.suggestion {
  clear: both;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 8px;
}
.suggestion blockquote {
  margin: 12px 0;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.suggestion form {
  display: grid;
  gap: 10px;
}
.suggestion form .button {
  justify-self: start;
}

@media (max-width: 600px) {
  nav {
    gap: 0;
    justify-content: space-around;
  }
  nav button {
    min-width: 0;
    flex: 1;
  }
}
#direct-invite {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-buttons .button {
  padding: 10px 12px;
}

.history-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.history-movie {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-movie img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}
.history-movie > div {
  min-width: 0;
}
.history-movie h3 {
  overflow-wrap: anywhere;
}
.history-movie .link-button {
  text-align: left;
}
