:root {
  --bg: #000;
  --black: #050505;
  --black-soft: #080808;
  --black-panel: rgba(8, 8, 8, 0.76);
  --black-card: #070707;
  --ink: #fff;
  --muted: #9a9a9a;
  --muted-strong: #d7d7d7;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --focus: rgba(255, 255, 255, 0.35);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.82);
  --glow: 0 0 42px rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #000;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #000;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(circle at 20% 82%, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, #000 0%, #050505 48%, #000 100%);
  animation: cosmicBreath 9s ease-in-out infinite;
}

.cosmic-gradient,
.cosmic-grid,
.ambient-orb,
.vignette {
  position: absolute;
  inset: 0;
}

.cosmic-gradient {
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 12% 18%, rgba(80, 80, 80, 0.18), transparent 32%),
    linear-gradient(180deg, #050505 0%, #000 58%, #030303 100%);
}

.cosmic-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.ambient-orb-top {
  left: 50%;
  top: -180px;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  filter: blur(4px);
  animation: slowOrbit 42s linear infinite;
}

.ambient-orb-side {
  left: auto;
  right: -160px;
  top: 112px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  filter: blur(18px);
  animation: orbBreath 6s ease-in-out infinite;
}

.vignette {
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.78) 78%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.space-bg,
.space-bg * {
  pointer-events: none;
}

.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.star-layer {
  position: absolute;
  inset: -18%;
  opacity: 0.64;
  transform-origin: center;
  background-repeat: repeat;
  animation: starDrift 32s linear infinite, starFlicker 5.6s ease-in-out infinite;
}

.star-layer-one {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px);
  background-size: 94px 94px, 137px 137px;
  background-position: 12px 18px, 47px 83px;
}

.star-layer-two {
  opacity: 0.28;
  filter: blur(0.4px);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.8px);
  background-size: 173px 173px, 241px 241px;
  background-position: 70px 30px, 10px 150px;
  animation-duration: 46s, 7.5s;
  animation-direction: reverse, normal;
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.75);
  opacity: 0.08;
  animation: particleFall var(--duration) linear var(--delay) infinite;
}

.black-hole {
  position: fixed;
  top: -86px;
  left: 50%;
  width: 1520px;
  height: 980px;
  opacity: 0.94;
  filter: drop-shadow(0 0 58px rgba(255, 241, 226, 0.12));
  transform-origin: center;
  animation: blackHoleBreath 12s ease-in-out infinite;
}

.black-hole::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 466px;
  z-index: 6;
  width: 1940px;
  height: 190px;
  margin-left: -970px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 238, 221, 0.18) 13%, rgba(255, 245, 232, 0.82) 36%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 238, 220, 0.8) 64%, rgba(255, 231, 208, 0.18) 88%, transparent 100%),
    repeating-linear-gradient(92deg, transparent 0 22px, rgba(255, 255, 255, 0.18) 23px 25px, transparent 28px 44px),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.92), rgba(239, 212, 190, 0.34) 34%, transparent 72%);
  background-size: 100% 100%, 220px 100%, 100% 100%;
  box-shadow:
    0 0 42px rgba(255, 255, 255, 0.36),
    0 0 110px rgba(236, 198, 169, 0.2);
  filter: blur(1.8px) contrast(1.22);
  transform: rotate(-8deg);
  mix-blend-mode: screen;
  animation: diskStream 7s linear infinite, diskPulse 4.8s ease-in-out infinite;
}

.black-hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 290px;
  z-index: 0;
  width: 820px;
  height: 560px;
  margin-left: -410px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(44, 61, 78, 0.62) 0%, rgba(13, 22, 32, 0.48) 38%, transparent 72%);
  filter: blur(12px);
  opacity: 0.76;
  animation: haloBreath 8s ease-in-out infinite;
}

.gravity-distortion {
  position: absolute;
  left: 50%;
  top: 420px;
  width: 760px;
  height: 760px;
  margin-left: -380px;
  margin-top: -380px;
  border-radius: 50%;
  opacity: 0.9;
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(255, 246, 235, 0.22) 49%, rgba(255, 231, 210, 0.48) 52%, rgba(255, 255, 255, 0.16) 56%, transparent 64%),
    conic-gradient(from 0deg, rgba(255, 235, 213, 0.08), rgba(255, 255, 255, 0.66), rgba(166, 122, 94, 0.14), rgba(255, 255, 255, 0.46), rgba(255, 235, 213, 0.08));
  filter: blur(1.4px);
  animation: accretionSpin 30s linear infinite;
}

.lens-ring {
  position: absolute;
  left: 50%;
  top: 382px;
  z-index: 4;
  width: 1720px;
  height: 230px;
  margin-left: -860px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(221, 172, 134, 0.2) 12%, rgba(255, 245, 232, 0.9) 36%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 236, 219, 0.72) 63%, rgba(190, 132, 96, 0.18) 88%, transparent 100%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px 18px);
  background-size: 100% 100%, 180px 100%;
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.38),
    0 0 120px rgba(225, 179, 146, 0.2);
  filter: blur(4px) contrast(1.18);
  animation: lensWobble 8s ease-in-out infinite, diskStream 9s linear infinite;
}

.black-hole-core {
  position: absolute;
  left: 50%;
  top: 285px;
  width: 430px;
  height: 430px;
  margin-left: -215px;
  z-index: 5;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 0 58%, rgba(1, 5, 8, 0.98) 64%, rgba(255, 222, 198, 0.18) 66%, transparent 71%),
    #000;
  box-shadow:
    0 0 160px 118px rgba(0, 0, 0, 0.98),
    0 0 190px 34px rgba(241, 211, 189, 0.1),
    inset 0 0 100px 16px rgba(255, 230, 210, 0.13);
  animation: corePulse 5.5s ease-in-out infinite;
}

.gravity-ring {
  position: absolute;
  left: 50%;
  top: 420px;
  width: 850px;
  height: 850px;
  margin-left: -425px;
  margin-top: -425px;
  border-radius: 50%;
  opacity: 0.85;
  transform-style: preserve-3d;
  mix-blend-mode: screen;
}

.gravity-ring-one {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.06) 0deg 3deg, transparent 4deg 10deg),
    conic-gradient(from 0deg, transparent 0deg, rgba(255, 236, 219, 0.16) 42deg, rgba(255, 255, 255, 0.62) 78deg, rgba(255, 224, 205, 0.14) 118deg, transparent 180deg, rgba(255, 255, 255, 0.38) 256deg, transparent 320deg),
    radial-gradient(circle, transparent 0 49%, rgba(255, 241, 226, 0.16) 51%, transparent 59%);
  filter: blur(1.7px);
  animation: ringSpinOne 24s linear infinite;
}

.gravity-ring-two {
  width: 620px;
  height: 620px;
  margin-left: -310px;
  margin-top: -310px;
  opacity: 0.58;
  background:
    conic-gradient(from 110deg, transparent 0deg, rgba(255, 255, 255, 0.42) 64deg, transparent 112deg, rgba(255, 224, 205, 0.22) 230deg, transparent 310deg),
    radial-gradient(circle, transparent 0 54%, rgba(255, 255, 255, 0.12) 56%, transparent 63%);
  filter: blur(2.8px);
  animation: ringSpinTwo 32s linear infinite;
}

.topbar,
.shell {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
}

.shell {
  z-index: 1;
}

.topbar {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 20px 28px;
}

.topbar > div {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: introSlide 520ms ease both;
}

.mini-icon {
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.glitch-title {
  position: relative;
  display: inline-grid;
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.1),
    0 28px 84px rgba(255, 255, 255, 0.1);
  animation: titleFlicker 6.8s steps(1, end) infinite;
}

.glitch-text,
.glitch-layer {
  grid-area: 1 / 1;
}

.glitch-text {
  position: relative;
  z-index: 2;
}

.glitch-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  color: #fff;
  will-change: transform, clip-path, opacity;
}

.glitch-rgb-red {
  color: rgba(255, 0, 54, 0.36);
  transform: translate(-2px, 0);
  animation: rgbRedLag 7.2s steps(1, end) infinite;
}

.glitch-rgb-blue {
  color: rgba(0, 140, 255, 0.34);
  transform: translate(2px, 0);
  animation: rgbBlueLag 7.2s steps(1, end) infinite;
}

.glitch-slice {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
  animation: sliceLag 8s steps(1, end) infinite;
}

.glitch-slice-top {
  clip-path: inset(0 0 67% 0);
}

.glitch-slice-mid {
  clip-path: inset(35% 0 34% 0);
  animation-delay: 90ms;
}

.glitch-slice-bottom {
  clip-path: inset(68% 0 0 0);
  animation-delay: 180ms;
}

.cosmic-title {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.14),
    0 28px 84px rgba(255, 255, 255, 0.12);
}

.cosmic-title-text {
  position: relative;
  z-index: 3;
  grid-area: 1 / 1;
  animation: cosmicTitlePulse 3s ease-in-out infinite;
}

.cosmic-title-glow {
  position: absolute;
  inset: -18% -8%;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(111, 177, 255, 0.42), transparent 76%);
  filter: blur(28px);
  opacity: 0.26;
  mix-blend-mode: screen;
  animation: cosmicTitleGlow 6s ease-in-out infinite alternate;
}

.cosmic-title-particles {
  position: absolute;
  inset: -22% -4% -18%;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-title-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: cosmicTitleParticle var(--duration) ease-in-out var(--delay) infinite;
}

h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 26px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  color: #000;
  background: #fff;
  box-shadow:
    0 22px 54px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-4px) scale(1.04);
  background: #f1f1f1;
  box-shadow:
    0 28px 68px rgba(255, 255, 255, 0.2),
    0 0 34px rgba(255, 255, 255, 0.16);
}

.icon-button svg {
  display: block;
}

.shell {
  padding: 0 20px 58px;
}

.mobile-search-field,
.mobile-filter-button,
.filter-backdrop,
.filter-sheet-handle,
.filter-sheet-head {
  display: none;
}

.controls {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(170px, 0.9fr) minmax(170px, 0.82fr) minmax(190px, 0.9fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 54px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(26px);
}

.search-field {
  min-width: 0;
}

.type-field {
  min-width: 0;
}

.sort-field {
  min-width: 0;
  order: 4;
}

.status-field {
  min-width: 0;
  order: 3;
}

label,
.control-group {
  display: grid;
  gap: 9px;
}

label span,
.control-group > span,
.field-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  padding: 0 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-shell:focus-within {
  border-color: var(--focus);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.055);
}

.input-shell input {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.input-shell input:focus {
  background: transparent;
  box-shadow: none;
}

.field-icon {
  flex: 0 0 auto;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.78);
  -webkit-appearance: none;
  appearance: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6 6 18M6 6l12 12' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6 6 18M6 6l12 12' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
  background: #fff;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 15px) 22px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

select option {
  color: #fff;
  background: #080808;
}

input:focus,
select:focus {
  border-color: var(--focus);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05);
}

input[type="range"] {
  accent-color: #fff;
  padding: 0;
}

input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.rating-field.disabled {
  opacity: 0.62;
}

.field-note {
  display: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rating-field.disabled .field-note {
  display: block;
}

.filter-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
  font-weight: 850;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.dropdown-trigger:hover,
.filter-dropdown.open .dropdown-trigger {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.035);
}

.dropdown-value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease;
}

.filter-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.82), 0 0 34px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top;
  transition: opacity 150ms ease, transform 150ms ease;
}

.filter-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.dropdown-menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.dropdown-menu button.active {
  color: #000;
  background: #fff;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.12);
}

.dropdown-check {
  flex: 0 0 auto;
  opacity: 0;
}

.dropdown-menu button.active .dropdown-check {
  opacity: 1;
}

.list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.list-head span {
  color: var(--muted);
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 390px;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: inherit;
  text-decoration: none;
  background: var(--black-card);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardSpring 980ms cubic-bezier(0.19, 1.18, 0.22, 1) both;
  animation-delay: var(--delay, 0ms);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

::view-transition-group(*) {
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.18, 1);
}

::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 900ms;
  mix-blend-mode: normal;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 52%);
  transition: opacity 220ms ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.74),
    0 0 44px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card:hover::after {
  opacity: 1;
}

.top-rated {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.84),
    0 0 52px rgba(255, 255, 255, 0.1);
}

.top-rated::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 34px;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(255, 255, 255, 0.92) 23%, rgba(255, 255, 255, 0.2) 28%, transparent 42%, rgba(255, 255, 255, 0.6) 70%, transparent 88% 100%);
  animation: topBorderRotate 5.8s linear infinite;
}

.top-rated::after {
  opacity: 1;
  background:
    linear-gradient(#070707, #070707) padding-box,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  inset: 2px;
  z-index: 1;
  border-radius: 30px;
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
  filter: grayscale(1) contrast(1.06);
  background: #111;
  transition: transform 700ms ease, filter 700ms ease, opacity 700ms ease;
}

.poster[data-src] {
  opacity: 0.38;
  filter: grayscale(1) contrast(0.92);
}

.poster-wrap {
  position: relative;
  z-index: 2;
  height: 240px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #070707, rgba(0, 0, 0, 0.35), transparent);
}

.poster-type {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #d4d4d4;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.poster-status {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: calc(100% - 128px);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(12px);
}

.card:hover .poster {
  opacity: 0.85;
  filter: grayscale(0) contrast(1.04);
  transform: scale(1.12);
}

.card-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 13px;
  padding: 20px;
}

.card-title {
  margin: 0;
  color: #e4e4e7;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  transition: transform 220ms ease;
}

.top-rated .card-title {
  color: #fff;
}

.card:hover .card-title {
  transform: translateX(4px);
}

.top-line {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 900;
}

.rating.no-rating {
  color: #a3a3a3;
}

.star-icon {
  fill: currentColor;
}

.top-rated .rating {
  color: #000;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}

.media-icon {
  display: inline-flex;
  color: #525252;
}

.empty-state {
  display: none;
  padding: 46px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  text-align: center;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(18px);
}

.empty-state.visible {
  display: block;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.modal {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(8, 8, 8, 0.95);
  box-shadow: 0 46px 130px rgba(0, 0, 0, 0.96), var(--glow);
  animation: modalIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #000;
  background: #fff;
  animation: lockWobble 2.4s ease-in-out infinite;
}

.modal-panel.small {
  max-width: 420px;
  margin: 0 auto;
}

.modal-panel p {
  color: var(--muted);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.close-button:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  padding: 0 18px;
  color: #000;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.08);
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, opacity 170ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #ededed;
  box-shadow: 0 24px 58px rgba(255, 255, 255, 0.13);
}

.danger-button {
  color: #fff;
  background: #111;
  border-color: rgba(255, 255, 255, 0.18);
}

.danger-button:hover:not(:disabled) {
  color: #000;
  background: #fff;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.form-error {
  min-height: 18px;
  margin: -4px 0 0;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
}

.form-heading {
  padding-right: 46px;
}

.image-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.image-tools p {
  margin: 4px 0 0;
  font-size: 14px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 122px;
}

.image-choice {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  border: 3px solid transparent;
  border-radius: 28px;
  background: #050505;
}

.image-choice.selected {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06), 0 0 36px rgba(255, 255, 255, 0.1);
}

.image-choice img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  display: block;
}

.image-choice button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.image-message {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 122px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
}

.edit-box,
.delete-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.edit-box h3,
.delete-box h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.edit-fields {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.delete-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.delete-results {
  display: grid;
  gap: 8px;
}

.delete-result {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  padding: 7px 12px 7px 7px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.delete-result:hover,
.delete-result.selected {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.delete-result img {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  object-fit: cover;
  background: #111;
  filter: grayscale(1);
}

.delete-result span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.delete-result strong {
  color: #fff;
}

#deleteHint {
  margin-bottom: 0;
  font-size: 14px;
}

@keyframes cosmicBreath {
  0%,
  100% {
    opacity: 0.74;
    transform: scale(1);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.035);
  }
}

@keyframes slowOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbBreath {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.42;
    transform: scale(1.12);
  }
}

@keyframes particleFall {
  0%,
  100% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) scale(1);
  }

  12% {
    opacity: 0.8;
  }

  72% {
    opacity: 0.34;
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.45);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift-x) * 1.35), calc(var(--drift-y) + 70px), 0) scale(0.75);
  }
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-90px, 70px, 0) scale(1.02);
  }
}

@keyframes starFlicker {
  0%,
  100% {
    opacity: 0.42;
    filter: brightness(0.86);
  }

  38% {
    opacity: 0.72;
    filter: brightness(1.24);
  }

  72% {
    opacity: 0.52;
    filter: brightness(0.94);
  }
}

@keyframes blackHoleBreath {
  0%,
  100% {
    opacity: 0.84;
    transform: translateX(-50%) scale(0.98);
  }

  50% {
    opacity: 0.98;
    transform: translateX(-50%) scale(1.045);
  }
}

@keyframes lensWobble {
  0%,
  100% {
    transform: rotate(-8deg) scaleX(1);
  }

  35% {
    transform: rotate(-6deg) scaleX(1.08);
  }

  70% {
    transform: rotate(-10deg) scaleX(1.03);
  }
}

@keyframes accretionSpin {
  from {
    transform: rotateX(0deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(0deg) rotateZ(360deg);
  }
}

@keyframes diskStream {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 0 0, 260px 0, 0 0;
  }
}

@keyframes diskPulse {
  0%,
  100% {
    opacity: 0.76;
    transform: rotate(-8deg) scaleX(1);
  }

  50% {
    opacity: 1;
    transform: rotate(-8deg) scaleX(1.04);
  }
}

@keyframes haloBreath {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes ringSpinOne {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

@keyframes ringSpinTwo {
  from {
    transform: rotateZ(360deg);
  }

  to {
    transform: rotateZ(0deg);
  }
}

@keyframes titleFlicker {
  0%,
  6%,
  8%,
  45%,
  47%,
  100% {
    opacity: 1;
  }

  7%,
  46% {
    opacity: 0.78;
  }
}

@keyframes cosmicTitlePulse {
  0%,
  100% {
    opacity: 0.42;
    filter: brightness(0.88);
  }

  50% {
    opacity: 1;
    filter: brightness(1.22);
  }
}

@keyframes cosmicTitleGlow {
  0% {
    opacity: 0.18;
    transform: translate3d(0, -30px, 0) scaleX(0.92);
  }

  50% {
    opacity: 0.58;
  }

  100% {
    opacity: 0.24;
    transform: translate3d(0, 30px, 0) scaleX(1.08);
  }
}

@keyframes cosmicTitleParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.75);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--shift-x), var(--end-y), 0) scale(1.35);
  }
}

@keyframes introSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rgbRedLag {
  0%,
  76%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  77% {
    opacity: 1;
    transform: translate(-4px, -1px);
  }

  78% {
    opacity: 0.55;
    transform: translate(3px, 1px);
  }

  80% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes rgbBlueLag {
  0%,
  76%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  77% {
    opacity: 0.9;
    transform: translate(4px, 1px);
  }

  79% {
    opacity: 0.45;
    transform: translate(-3px, -1px);
  }

  81% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes sliceLag {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  69% {
    opacity: 0.95;
    transform: translate(-8px, -2px);
  }

  70% {
    opacity: 0.82;
    transform: translate(7px, 2px);
  }

  72% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes cardSpring {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }

  58% {
    opacity: 1;
    transform: translateY(-5px) scale(1.015);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes topBorderRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
  }

  50% {
    transform: scale(1.045);
    box-shadow: 0 0 38px rgba(255, 255, 255, 0.24);
  }
}

@keyframes lockWobble {
  0%,
  100% {
    transform: rotate(0deg);
  }

  35% {
    transform: rotate(-8deg);
  }

  70% {
    transform: rotate(8deg);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
  }

  .glitch-title,
  .cosmic-title {
    font-size: 56px;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-field,
  .type-field,
  .sort-field,
  .status-field {
    min-width: 0;
  }

  .segmented {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .black-hole {
    top: -42px;
    left: 50%;
    width: 980px;
    height: 690px;
  }

  .black-hole::before {
    top: 330px;
    width: 1320px;
    height: 142px;
    margin-left: -660px;
  }

  .black-hole::after {
    top: 184px;
    width: 560px;
    height: 410px;
    margin-left: -280px;
  }

  .gravity-distortion {
    top: 300px;
    width: 510px;
    height: 510px;
    margin-left: -255px;
    margin-top: -255px;
  }

  .lens-ring {
    top: 282px;
    width: 1120px;
    height: 166px;
    margin-left: -560px;
  }

  .black-hole-core {
    top: 206px;
    width: 300px;
    height: 300px;
    margin-left: -150px;
  }

  .gravity-ring {
    top: 300px;
    width: 560px;
    height: 560px;
    margin-left: -280px;
    margin-top: -280px;
  }

  .gravity-ring-two {
    width: 430px;
    height: 430px;
    margin-left: -215px;
    margin-top: -215px;
  }
}

@media (max-width: 560px) {
  body.filter-sheet-open {
    overflow: hidden;
  }

  body::before {
    animation: none;
  }

  .cosmic-grid,
  .ambient-orb,
  .star-layer-two {
    display: none;
  }

  .star-layer-one {
    opacity: 0.24;
    animation-duration: 58s, 9s;
  }

  .space-bg {
    opacity: 1;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .glitch-title,
  .cosmic-title {
    max-width: 100%;
    font-size: clamp(34px, 14vw, 42px);
    letter-spacing: -0.04em;
  }

  .cosmic-title-glow {
    inset: -24% -10%;
    filter: blur(20px);
  }

  .cosmic-title-particles {
    inset: -28% -6% -20%;
  }

  .add-button {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 9999;
    pointer-events: auto;
  }

  .black-hole {
    top: 36px;
    width: 720px;
    height: 520px;
    opacity: 1;
    filter:
      drop-shadow(0 0 28px rgba(255, 241, 226, 0.22))
      drop-shadow(0 0 78px rgba(255, 255, 255, 0.08));
  }

  .black-hole::before {
    top: 242px;
    z-index: 8;
    width: 940px;
    height: 88px;
    margin-left: -470px;
    background:
      linear-gradient(90deg, transparent 0%, rgba(255, 223, 198, 0.12) 10%, rgba(255, 235, 216, 0.76) 35%, #fff 50%, rgba(255, 232, 210, 0.78) 64%, rgba(217, 171, 137, 0.16) 90%, transparent 100%),
      repeating-linear-gradient(96deg, transparent 0 13px, rgba(255, 255, 255, 0.28) 14px 16px, transparent 17px 29px),
      radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.96), rgba(238, 204, 177, 0.34) 42%, transparent 74%);
    box-shadow:
      0 0 22px rgba(255, 255, 255, 0.55),
      0 0 72px rgba(229, 190, 158, 0.34);
    filter: blur(0.45px) contrast(1.58);
    transform: rotate(-10deg);
  }

  .black-hole::after {
    top: 148px;
    width: 430px;
    height: 310px;
    margin-left: -215px;
    opacity: 0.36;
    filter: blur(10px);
  }

  .gravity-distortion {
    top: 248px;
    width: 390px;
    height: 390px;
    margin-left: -195px;
    margin-top: -195px;
    opacity: 0.94;
    filter: blur(0.55px) contrast(1.32);
  }

  .lens-ring {
    top: 232px;
    z-index: 7;
    width: 820px;
    height: 96px;
    margin-left: -410px;
    opacity: 0.96;
    background:
      linear-gradient(90deg, transparent 0%, rgba(208, 161, 128, 0.14) 12%, rgba(255, 241, 224, 0.82) 38%, #fff 50%, rgba(255, 237, 218, 0.72) 62%, rgba(205, 150, 112, 0.16) 88%, transparent 100%),
      repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px 13px);
    filter: blur(1px) contrast(1.55);
  }

  .black-hole-core {
    top: 146px;
    z-index: 9;
    width: 220px;
    height: 220px;
    margin-left: -110px;
    background:
      radial-gradient(circle at 50% 50%, #000 0 59%, rgba(0, 0, 0, 0.98) 65%, rgba(255, 232, 212, 0.34) 67%, transparent 72%),
      #000;
    box-shadow:
      0 0 100px 72px rgba(0, 0, 0, 0.98),
      0 0 54px 7px rgba(255, 231, 209, 0.2),
      inset 0 0 54px 8px rgba(255, 231, 209, 0.16);
  }

  .gravity-ring {
    top: 248px;
    width: 390px;
    height: 390px;
    margin-left: -195px;
    margin-top: -195px;
    opacity: 0.54;
  }

  .gravity-ring-two {
    width: 280px;
    height: 280px;
    margin-left: -140px;
    margin-top: -140px;
    opacity: 0.44;
  }

  .icon-button {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 20px;
  }

  .icon-button svg {
    width: 28px;
    height: 28px;
  }

  .shell {
    padding: 0 14px 96px;
  }

  .mobile-search-field {
    position: relative;
    z-index: 25;
    display: grid;
    gap: 9px;
    margin: 0 0 12px;
  }

  .mobile-search-field .input-shell {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
  }

  .mobile-filter-button {
    position: relative;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 900;
    box-shadow:
      0 20px 58px rgba(0, 0, 0, 0.54),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
  }

  .mobile-filter-button:active {
    transform: scale(0.98);
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    transition: opacity 180ms ease;
  }

  body.filter-sheet-open .filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: grid;
    grid-template-columns: 1fr;
    max-height: min(82vh, 620px);
    margin: 0;
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 32px 32px 0 0;
    background: rgba(9, 9, 11, 0.98);
    box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.86);
    transform: translateY(104%);
    transition: transform 360ms cubic-bezier(0.2, 0.9, 0.22, 1);
  }

  .controls .search-field {
    display: none;
  }

  .controls.open {
    transform: translateY(0);
  }

  .filter-sheet-handle {
    display: block;
    width: 48px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
  }

  .filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
  }

  .filter-sheet-head h2 {
    font-size: 26px;
    font-weight: 900;
  }

  .filter-close-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .filter-close-button:active {
    transform: scale(0.96);
  }

  .dropdown-menu {
    position: static;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transform: translateY(-6px) scale(0.98);
  }

  .filter-dropdown.open .dropdown-menu {
    max-height: 260px;
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-width: 1px;
    transform: translateY(0) scale(1);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    contain-intrinsic-size: 238px;
    min-height: 0;
    border-radius: 22px;
  }

  .top-rated::before {
    border-radius: 24px;
  }

  .top-rated::after {
    border-radius: 20px;
  }

  .poster-wrap {
    height: clamp(142px, 43vw, 176px);
    border-radius: 22px 22px 0 0;
  }

  .card-body {
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .poster-type,
  .poster-status {
    min-height: 25px;
    padding: 0 9px;
    font-size: 10px;
  }

  .poster-type {
    left: 10px;
    top: 10px;
  }

  .poster-status {
    right: 10px;
    top: auto;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .card-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .top-line {
    width: 54px;
  }

  .meta-row {
    gap: 6px;
  }

  .rating {
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    font-size: 14px;
  }

  .rating svg,
  .media-icon svg {
    width: 17px;
    height: 17px;
  }

  .image-tools,
  .delete-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
