<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>{{.Data.Name}}{{if gt .Data.Birthday.Year 1}} ({{.Data.Birthday.Year}}){{end}} — a·muse</title>
		<link rel="stylesheet" href="/static/style/style.css" />
		<link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
		<link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
	</head>
	<body>
		<header class="w12 bg-primary-semi-transparent paddin-bottom-_25">
			<a href="/" class="decoration-none">
				<h1 class="inline valign-mid text-white sans margin-lr-1">a·muse</h1>
			</a>
			<form action="/items/" method="get" class="flex inline right-float move-100 margin-lr-1 border-bottom-white">
				<input type="search" name="q" class="phone-max-width-8 border-none bg-none sans text-white" />
				<input type="submit" value="&#xe8b6;" class="material-icon border-none bg-none cursor-hand text-white" />
			</form>
		</header>
		<div class="absolute top behind w12">
			<img src="/static/img/person_backdrop.webp" class="w12 cover height-30" /> <!-- Photo by [Pixbay](https://www.pexels.com/@pixabay) from [Pexels](https://www.pexels.com/photo/time-lapse-photo-of-lights-220118/) -->
			<div class="on-desktop relative bottom-4 sans inline-block w12 padding-l-16 font-3 bg-gradient border-box">
				<span class="text-white">{{.Data.Name}}</span>
			</div>
		</div>
		<main class="margin-top-20 margin-lr-5 flex flex-flow">
			<div class="desktop-w3 phone-w12 margin-bottom-2">
				{{if .Data.Profile_path}}
				<img src="https://image.tmdb.org/t/p/w154{{.Data.Profile_path}}" class="block">
				{{else}}
				<img src="/static/img/person_empty.webp" class="block" />
				{{end}}
				<div class="on-phone">
					<span class="sans font-3">{{.Data.Name}}</span>
				</div>
				<p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe7e9;</span> {{$.Strings.Person.born}}</p>
				<p class="margin-lr-1 sans margin-tb-_5">{{if gt .Data.Birthday.Year 1}}{{.FormatDate .Data.Birthday}},<br/>{{end}}{{.Data.Place_of_birth}}</p>
				{{if gt .Data.Deathday.Year 1}}
				<p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe88b;</span> {{$.Strings.Person.died}}</p>
				<p class="margin-lr-1 sans margin-tb-_5">{{.FormatDate .Data.Deathday}}</p>
				{{end}}
			</div>
			<div class="desktop-w6 phone-w12 margin-top-10 padding-lr-2 margin-bottom-2">
				<p class="serif justify hyphenate">{{.Data.Biography}}</p>
				<hr class="material-icon text-grey" />
			</div>
			<div class="desktop-w3 phone-w12 margin-top-10 flex phone-flex-flow margin-bottom-2">
				<details class="min-width-13_5 margin-lr-1 flex-force-50">
					<summary class="cursor-hand">
						<span class="material-icon font-1_5">&#xe7fb;</span> <span class="sans font-1_5">{{.Strings.Person.cast}}</span>
					</summary>
					<div>
						{{range .Data.Credits.Cast}}
						{{if eq .Media_type "movie"}}
						<a href="/films/{{.Id}}" class="decoration-none">
						{{else if eq .Media_type "tv"}}
						<a href="/series/{{.Id}}" class="decoration-none">
						{{end}}
							<div class="flex margin-tb-1">
								<div>
									{{if .Poster_path}}
									<img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" class="width-92px" decoding="async" loading="lazy" />
									{{else if eq .Media_type "movie"}}
									<img src="/static/img/poster_empty.webp" class="width-92px" decoding="async" loading="lazy" />
									{{else if eq .Media_type "tv"}}
									<img src="/static/img/tv_empty.webp" class="width-92px" decoding="async" loading="lazy" />
									{{end}}
								</div>
								<div class="margin-lr-1">
									<p class="sans margin-tb-_5">{{.Title}}</p>
									{{if ne .Character ""}}
									<p class="sans text margin-tb-_5 font-_875">{{$.Strings.Person.as}}</p>
									<p class="sans text margin-tb-_5">{{.Character}}</p>
									{{end}}
									{{if gt .Release_date.Year 1}}
									<p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
									{{end}}
								</div>
							</div>
						</a>
						{{end}}
					</div>
				</details>
				<details class="min-width-13_5 margin-lr-1 flex-force-50">
					<summary class="cursor-hand">
						<span class="material-icon font-1_5">&#xe7fc;</span> <span class="sans font-1_5">{{.Strings.Person.crew}}</span>
					</summary>
					<div>
						{{range .Data.Credits.Crew}}
						{{if eq .Media_type "movie"}}
						<a href="/films/{{.Id}}" class="decoration-none">
						{{else if eq .Media_type "tv"}}
						<a href="/series/{{.Id}}" class="decoration-none">
						{{end}}
							<div class="flex margin-tb-1">
								<div>
									{{if .Poster_path}}
									<img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" decoding="async" loading="lazy" class="width-92px" />
									{{else if eq .Media_type "movie"}}
									<img src="/static/img/poster_empty.webp" class="width-92px" decoding="async" loading="lazy" />
									{{else if eq .Media_type "tv"}}
									<img src="/static/img/tv_empty.webp" class="width-92px" decoding="async" loading="lazy" />
									{{end}}
								</div>
								<div class="margin-lr-1">
									<p class="sans margin-tb-_5">{{.Title}}</p>
									<p class="sans text margin-tb-_5 font-_875">—</p>
									<p class="sans text margin-tb-_5">{{.Job}}</p>
									{{if gt .Release_date.Year 1}}
									<p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
									{{end}}
								</div>
							</div>
						</a>
						{{end}}
					</div>
				</details>
			</div>
		</main>
	</body>
</html>
