/* ============================================================
   FILM FRACTURES — styles
   ============================================================ */
:root {
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --card: #ffffff;
  --card-text: #111111;
  --card-dim: #6b6b6b;
  --radius: 16px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --w: 580px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #140d1e;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* blurred logo background, like Linktree's "blur" theme */
.bg {
  position: fixed; inset: -60px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.3);
  transform: scale(1.1);
}
.bg::after { content: ""; position: absolute; inset: 0; background: rgba(12, 8, 18, 0.45); }

.page {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--w);
  margin: 0 auto;
  padding: 48px 16px 40px;
}

/* ---------- top share button ---------- */
.share-top {
  position: fixed; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.18); border: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; transition: background 0.15s ease;
}
.share-top:hover { background: rgba(255, 255, 255, 0.3); }
.share-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- profile ---------- */
.profile { text-align: center; }
.avatar {
  width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.name { margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.bio { display: grid; gap: 6px; width: fit-content; max-width: min(100%, 320px); margin: 12px auto 0; text-align: left; font-size: 14.5px; color: var(--text-dim); }
.bio p { display: grid; grid-template-columns: 1.6em 1fr; align-items: start; margin: 0; }
.bio .e { text-align: center; }
.bio p span:last-child { text-wrap: pretty; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.soc:hover { transform: scale(1.08); }
.soc svg { width: 24px; height: 24px; }

/* ---------- shelf ---------- */
.shelf { margin-top: 32px; }
.heading {
  margin: 0 0 12px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
#prev-heading { margin-top: 32px; }

/* amazon bits */
.amz { width: 18px; height: 18px; flex: none; fill: currentColor; }
.buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-size: 16px; font-weight: 600; color: #0F1111;
  background: #FFD814; border: 1px solid #FCD200;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
  position: relative; overflow: hidden;
  transition: background 0.15s ease;
}
.buy::after { /* soft shine that draws the eye */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-250%); animation: shine 3.2s ease-in-out infinite 1s;
}
@keyframes shine { 0%, 60% { transform: translateX(-250%); } 100% { transform: translateX(350%); } }
.amz-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 4px 9px 4px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; color: #fff; background: #232F3E;
}
.amz-badge .amz { width: 14px; height: 14px; fill: #FF9900; }
.amz-badge b { font-weight: 700; letter-spacing: -0.01em; }

/* featured (newest) pick */
.feature {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px 16px;
  padding: 14px; border-radius: 20px;
  background: var(--card); color: var(--card-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.feature:hover .buy { background: #F7CA00; }
.f-cover {
  position: relative; aspect-ratio: 0.785; border-radius: 8px; overflow: hidden;
  background: #222; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.f-cover img { width: 100%; height: 100%; object-fit: cover; }
.new {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: #CC0C39;
}
.f-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.f-title { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.f-format { font-size: 14px; font-weight: 500; color: #007185; }
.f-pitch { font-size: 14px; line-height: 1.45; color: #444; }
.feature .buy { grid-column: 1 / -1; }
.f-note { grid-column: 1 / -1; margin-top: -6px; text-align: center; font-size: 12px; color: var(--card-dim); }

/* previous picks */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pick {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius);
  background: var(--card); color: var(--card-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.pick:hover { transform: scale(1.02); }
.pick:hover .buy { background: #F7CA00; }
.p-cover { width: 58px; aspect-ratio: 0.785; flex: none; border-radius: 6px; overflow: hidden; background: #222; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-info { flex: 1; min-width: 0; }
.p-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.p-format { display: block; margin-top: 2px; font-size: 13px; color: #007185; }
.buy-sm { min-height: 36px; padding: 0 14px; font-size: 14px; flex: none; }
.buy-sm::after { display: none; }
.buy-sm .amz { width: 15px; height: 15px; }

/* placeholder case when no cover image is set */
.case { width: 100%; height: 100%; display: flex; flex-direction: column; background: linear-gradient(160deg, #3a3a44, #121216); }
.case .band { height: 18%; display: grid; place-items: center; font-size: 7px; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: #0b56c8; }
.case.uhd .band { background: #000; }
.case .t { flex: 1; display: grid; place-items: center; padding: 4px; text-align: center; font-size: 9px; font-weight: 600; line-height: 1.15; color: rgba(255, 255, 255, 0.85); }

/* ---------- footer ---------- */
.foot { margin-top: 40px; text-align: center; }
.disclosure { max-width: 42ch; margin: 0 auto; font-size: 12px; color: var(--text-dim); }
.brand { margin: 16px 0 0; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #fff; background: rgba(20, 20, 20, 0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
