/* The details page (MT-7): the player's Info column (MT-14), the film's poster as its backdrop. */
.details {
  position: fixed; inset: 0; z-index: 15; background: #000; overflow: hidden; will-change: transform;
  display: flex; align-items: center; justify-content: center;
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l));
}
.details-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px) brightness(.4) saturate(1.2); pointer-events: none; }
.details-panel {
  position: relative; width: 100%; max-width: calc((100vh - 50px) * 2 / 3 + 620px); height: 100%; display: flex; gap: 18px;
  background: linear-gradient(160deg, #1b1b22, #0e0e12); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.details-poster { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.details-body { flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 48px; -webkit-user-select: text; user-select: text; }
.details-body h2 { margin: 0; font-size: clamp(18px, 5vh, 26px); line-height: 1.15; }
.details-tagline { margin: 4px 0 0; color: var(--muted); font-style: italic; }
.details-tagline:empty, .details-director:empty, .details-story:empty, .details-studio:empty { display: none; }
.details-score { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; }
.score-big { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.score-of { color: var(--text); font-weight: 600; }
.score-votes { color: var(--muted); font-size: 14px; }
.score-none { font-size: 20px; font-weight: 700; color: var(--muted); }
.details-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #d8d8e0; }
.details-director { margin: 10px 0 0; color: #d8d8e0; }
.details-cast { display: flex; gap: 12px; overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; }
.person { flex: none; width: 76px; text-align: center; }
.person-photo { width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; background: #2a2a33 center / cover no-repeat; }
.person-name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.person-role { font-size: 11px; color: var(--muted); line-height: 1.2; }
.details-story { margin: 10px 0 0; line-height: 1.45; }
.details-studio { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.details-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.details-fav, .details-share, .details-lists { position: static; background: var(--panel); border: 1px solid var(--line); }
.details-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 26px; line-height: 1; padding: 0; }

/* The tabs (app.css) and Where to watch (MT-8). */
.details-body > .tabs { margin-bottom: 10px; }
.details-seasons { margin-top: 10px; flex-wrap: wrap; }
.details-seasons:empty { display: none; }
.watch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.watch-head h2 { margin: 0; font-size: clamp(16px, 4.4vh, 22px); line-height: 1.15; }
.watch-country { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; }
.watch-country select { max-width: 190px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; padding: 2px 0; cursor: pointer; }
.watch-country select option { background: var(--panel); color: var(--text); }
.watch-flag { font-size: 18px; line-height: 1; }
.watch-cinema { margin: 8px 0 0; }
.watch-cinema:empty { display: none; }
.watch-date { margin: 2px 0; color: #d8d8e0; font-weight: 600; }
.watch-date:first-child { color: var(--accent); }
.watch-group h3 { margin: 12px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.watch-row { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.service { width: 68px; text-align: center; color: var(--text); text-decoration: none; -webkit-user-select: none; user-select: none; }
.service-logo { display: block; width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 12px; overflow: hidden; background: #2a2a33; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.service-logo img { width: 100%; height: 100%; display: block; }
.service:active .service-logo { transform: scale(.94); }
.service-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.2; }
.watch-none { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.watch-foot { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
/* MT-66: a name opens the person's page; Follow sits under the actor, beside the director. */
.person-open, .maker-name { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.person-open { display: block; width: 100%; text-align: center; }
.maker-name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.person .follow { margin-top: 4px; padding: 2px 8px; font-size: 11px; }
.details-director .follow { padding: 1px 8px; font-size: 11px; vertical-align: 1px; }
.details-lists svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
