:root {
  --bg: #070707;
  --ink: #f4efe6;
  --muted: #b7b1a6;
  --line: rgba(244, 239, 230, 0.16);
  --font: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #030303; }
body {
  min-height: 100vh;
  background: #030303;
  color: var(--ink);
  font-family: var(--font);
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.shell {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 108px;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 16px;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.wordmark span {
  background: linear-gradient(100deg, #7dffe8, #6f9bff, #d9a6ff, #6f9bff, #7dffe8);
  background-size: 240% 240%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: dock-flow 5s ease-in-out infinite;
}
.top-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f6efe4, #f3c98a, #e7a8b8, #f3c98a, #f6efe4);
  background-size: 240% 240%;
  animation: dock-flow 5s ease-in-out infinite;
  color: #3a322c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.top-download svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 16px 0;
}
.still {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  text-align: left;
}
.still-feature { background: #000; }
.still-feature video { object-fit: contain; }
.still img,
.still video,
.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.still video { pointer-events: none; }
.card-meta {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.card-meta em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  color: #f3d7a1;
}
.card-meta em::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3.5px 0 3.5px 6px;
  border-color: transparent transparent transparent #f3d7a1;
}

.library { padding: 22px 16px 0; }
.library h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.poster {
  position: relative;
  aspect-ratio: 3 / 3.7;
  overflow: hidden;
  border-radius: 12px;
  text-align: left;
}
.poster::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}
.poster::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
  pointer-events: none;
}

.still-after { background: linear-gradient(160deg, #3a2a22, #120e0c 70%); }
.still-rain { background: linear-gradient(180deg, #1c2833, #0c1014); }
.still-kitchen { background: linear-gradient(160deg, #3a2e1c, #14110c); }
.still-side { background: linear-gradient(180deg, #24303a, #101418); }
.poster-couples { background: linear-gradient(165deg, #1d3330, #101614); }
.poster-solo { background: linear-gradient(180deg, #2a2c30, #101113); }
.poster-late { background: linear-gradient(180deg, #3a2b24, #140f0d); }
.poster-sunday { background: linear-gradient(160deg, #2c261c, #12110e); }
.poster-hallway { background: linear-gradient(180deg, #2a241c, #0e0d0b); }
.poster-quiet { background: linear-gradient(200deg, #1a2430, #0c0e12); }

.dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(448px, calc(100% - 20px));
  min-height: 68px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  backdrop-filter: blur(16px);
}
.mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}
.dock-copy { min-width: 0; flex: 1; }
.dock-copy b,
.dock-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-copy b { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.dock-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.dock-copy i {
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  color: var(--ink);
}
.dock-button {
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #f6efe4, #f3c98a, #e7a8b8, #f3c98a, #f6efe4);
  background-size: 240% 240%;
  animation: dock-flow 5s ease-in-out infinite;
  color: #3a322c;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
@keyframes dock-flow {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-button,
  .top-download,
  .wordmark span { animation: none; }
}
