/* Film page: AI sentiment layout. Uses the site's own variables and the red-to-gold score colours (--c via .sc). */

/* top block: gauge + verdict */
.fp-top { display: flex; align-items: center; gap: 22px; }
.fp-top-text { min-width: 0; flex: 1; }
.fp-eyebrow { margin: 0 0 4px; font: 700 0.76rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fp-verdict { margin: 0; font: 700 1.3rem/1.3 var(--display); letter-spacing: -0.015em; }
.fp-top-text .muted { margin: 8px 0 0; font-size: 0.9rem; }

.fp-gauge { position: relative; flex: none; width: 140px; aspect-ratio: 1; }
.fp-gauge svg { width: 100%; height: 100%; display: block; }
.fp-gauge .g-track { stroke: var(--tint-strong); }
.fp-gauge .g-arc { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 45%, transparent)); }
.fp-gauge .g-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 4px; }
.fp-gauge .g-num { font: 800 2.5rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fp-gauge .g-mood { margin-top: 2px; font: 700 0.95rem var(--body); }
.fp-gauge .g-cap { margin-top: 2px; font-size: 0.6rem; white-space: nowrap; color: var(--muted); letter-spacing: 0.02em; }
.fp-gauge.pending .g-num { color: var(--muted); }
.fp-gauge.pending .g-mood { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

/* sections */
.fp-h { font-size: 1.12rem; margin: 0 0 4px; }
.fp-h::before { content: ""; display: inline-block; width: 4px; height: 0.95em; margin-right: 9px; border-radius: 2px; vertical-align: -0.08em; background: linear-gradient(180deg, #d7263d, #f0a020 45%, #2fb344); }
.fp-sub { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }

/* sentiment cards */
.fp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fp-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px 14px;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 15%, transparent), color-mix(in srgb, var(--c) 5%, transparent)); }
.fp-card h3 { font: 700 1rem var(--display); margin: 0; }
.fp-card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.fp-pct { margin: 2px 0 0; font: 800 2rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fp-pct small { font-size: 0.55em; margin-left: 1px; }
.fp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px; font: 700 0.78rem var(--body);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.fp-note { margin: 4px 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.ico { flex: none; }

/* loved / disliked */
.fp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fp-box { padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); }
.fp-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 0.98rem var(--display); }
.fp-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-box li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.35; }
.fp-box li .sc { margin-top: 1px; display: inline-flex; }

/* note under the cards */
.fp-ainote { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.fp-ainote > svg { margin-top: 1px; color: var(--text); opacity: 0.8; }
.fp-ainote strong { display: block; color: var(--text); font-weight: 600; }
.fp-ainote small { display: block; margin-top: 2px; font-size: 0.8rem; }

/* the written take */
.fp-wide p { max-width: 68ch; line-height: 1.65; margin: 0 0 0.9em; }
.fp-wide .fp-verdict-lg { font: 700 1.1rem/1.4 var(--display); }
.fp-aspects { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 8px; max-width: 460px; }
.fp-aspects li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 0.92rem; }
.fp-a-bar { height: 8px; border-radius: 99px; background: var(--tint-strong); overflow: hidden; }
.fp-a-bar span { display: block; height: 100%; border-radius: 99px; }
.fp-a-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fp-fine { font-size: 0.82rem; margin: 12px 0 0 !important; }

/* more */
.fp-more-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.fp-more-links a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--tint); text-decoration: none; font-size: 0.92rem; }
.fp-more-links a:hover { background: var(--tint-hover); border-color: var(--border-strong); }

/* tab bar */
.fp-tabs { position: sticky; top: 58px; z-index: 12; display: flex; gap: 4px; justify-content: center; margin: 1rem 0 0; padding: 5px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.fp-tabs a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); font: 600 0.82rem var(--body); }
.fp-tabs a svg { display: none; }
.fp-tabs a:hover { color: var(--text); }
.fp-tabs a.on { color: var(--text); background: var(--tint-strong); box-shadow: inset 0 -2px 0 #f0a020; }
.fp-tabs a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.film [id] { scroll-margin-top: 130px; }

@media (max-width: 720px) {
  .fp-top { gap: 14px; }
  .fp-gauge { width: 116px; }
  .fp-gauge .g-num { font-size: 2.05rem; }
  .fp-verdict { font-size: 1.1rem; }
  .fp-cards { gap: 8px; }
  .fp-card { padding: 12px 6px 12px; }
  .fp-card-ico { width: 40px; height: 40px; }
  .fp-card h3 { font-size: 0.9rem; }
  .fp-pct { font-size: 1.6rem; }
  .fp-pill { font-size: 0.7rem; padding: 3px 8px 3px 6px; }
  .fp-note { font-size: 0.76rem; }
  .fp-two { gap: 8px; }
  .fp-box { padding: 12px; }
  .fp-box li { font-size: 0.9rem; }
  .fp-aspects li { grid-template-columns: 80px minmax(0, 1fr) 30px; }
  body.has-tabs main { padding-bottom: 84px; }
  .fp-tabs { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 14; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .fp-tabs a { max-width: none; border-radius: 12px; font-size: 0.72rem; padding: 6px 2px; }
  .fp-tabs a svg { display: block; }
  .fp-tabs a.on { box-shadow: none; background: var(--tint-strong); }
  .fp-tabs a.on svg { color: #f0a020; }
  .film [id] { scroll-margin-top: 70px; }
}
@media (max-width: 340px) {
  .fp-top { flex-direction: column; align-items: flex-start; }
  .fp-two { grid-template-columns: 1fr; }
  .fp-cards { grid-template-columns: 1fr; }
  .fp-card { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; align-items: center; padding: 12px 14px; column-gap: 12px; }
  .fp-card .fp-note { flex-basis: 100%; }
}

/* confidence */
.fp-conf-row { margin: 8px 0 0; }
.fp-conf { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; font: 700 0.78rem var(--body); border: 1px solid var(--glass-line); background: var(--tint); }
.fp-conf-dots { display: inline-flex; gap: 3px; }
.fp-conf-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--tint-strong); box-shadow: inset 0 0 0 1px var(--glass-line); }
.fp-conf-high .fp-conf-dots i { background: #2fb344; box-shadow: none; }
.fp-conf-medium .fp-conf-dots i:nth-child(-n+2) { background: #f0a020; box-shadow: none; }
.fp-conf-low .fp-conf-dots i:nth-child(1) { background: #ef6a2f; box-shadow: none; }
.fp-confbox { margin: 12px 0 0; }
.fp-confdef { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.fp-confdef summary { cursor: pointer; width: max-content; max-width: 100%; text-decoration: underline; text-underline-offset: 3px; }
.fp-confdef dl { margin: 10px 0 0; display: grid; gap: 8px; }
.fp-confdef dl > div { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--tint); }
.fp-confdef dl > div.on { border-color: var(--border-strong); background: var(--tint-hover); color: var(--text); }
.fp-confdef dt { font-weight: 700; color: var(--text); }
.fp-confdef dd { margin: 2px 0 0; line-height: 1.45; }
