:root {
	--lfj-bg: #080706;
	--lfj-panel: #12110f;
	--lfj-panel-2: #1b1813;
	--lfj-paper: #f1eadb;
	--lfj-text: #f7f2e8;
	--lfj-muted: #aaa093;
	--lfj-line: rgba(232, 183, 53, .2);
	--lfj-accent: #e8b735;
	--lfj-highlight: #7b1119;
	--lfj-radius: 2px;
}

.lfj {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-block: 24px;
	padding: clamp(24px, 4.5vw, 58px);
	border: 1px solid var(--lfj-line);
	border-radius: var(--lfj-radius);
	background:
		radial-gradient(circle at 92% 0, rgba(123, 17, 25, .26), transparent 26rem),
		linear-gradient(145deg, #0b0a08 0%, var(--lfj-bg) 62%, #0d0909 100%);
	box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
	color: var(--lfj-text);
	font-family: Inter, Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}
.lfj::before { position: absolute; inset: 0 0 auto; z-index: -1; height: 4px; background: linear-gradient(90deg, var(--lfj-accent) 0 23%, var(--lfj-highlight) 23% 31%, transparent 31%); content: ""; }
.lfj *, .lfj-modal * { box-sizing: border-box; }
.lfj a { color: inherit; text-decoration: none; }
.lfj h1, .lfj h2, .lfj h3, .lfj h4, .lfj p { margin-top: 0; }
.lfj h1, .lfj h2, .lfj h3, .lfj h4 { color: var(--lfj-text); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }

.lfj-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--lfj-accent); font-size: .7rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.lfj-eyebrow::before { width: 26px; height: 1px; background: currentColor; content: ""; }
.lfj-profile__hero { display: grid; grid-template-columns: minmax(0, 1fr) 164px; align-items: center; gap: clamp(28px, 6vw, 80px); min-height: 220px; margin-bottom: 34px; }
.lfj-profile__masthead h2 { max-width: 850px; margin: 0 0 10px; font-size: clamp(2.5rem, 6.5vw, 5.8rem); letter-spacing: -.045em; }
.lfj-profile__curator { margin: 0 0 20px; color: var(--lfj-accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lfj-profile__intro { max-width: 720px; margin-bottom: 0; color: var(--lfj-muted); font-size: 1rem; }
.lfj-profile__seal { display: grid; width: 164px; height: 164px; place-content: center; border: 1px solid var(--lfj-accent); outline: 1px solid rgba(232, 183, 53, .26); outline-offset: -8px; background: rgba(9, 8, 7, .78); box-shadow: 0 20px 55px rgba(0, 0, 0, .38); text-align: center; transform: rotate(2deg); }
.lfj-profile__seal span, .lfj-profile__seal small { color: var(--lfj-muted); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lfj-profile__seal strong { margin: 7px 0; color: var(--lfj-accent); font-family: Georgia, serif; font-size: 2.5rem; line-height: 1; }

.lfj-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 44px; border-block: 1px solid var(--lfj-line); background: rgba(18, 17, 15, .78); }
.lfj-stat { position: relative; display: flex; min-height: 104px; align-items: flex-start; justify-content: center; flex-direction: column; padding: 18px clamp(12px, 2vw, 24px); border-right: 1px solid var(--lfj-line); }
.lfj-stat:last-child { border-right: 0; }
.lfj-stat strong { color: var(--lfj-paper); font-family: Georgia, serif; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 400; }
.lfj-stat span { color: var(--lfj-muted); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.lfj-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 0 0 13px; border-bottom: 1px solid var(--lfj-line); }
.lfj-section-heading h2, .lfj-section-heading h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.1rem); letter-spacing: -.015em; }
.lfj-section-heading h2::before, .lfj-section-heading h3::before { margin-right: 10px; color: var(--lfj-accent); content: "//"; font-family: Inter, sans-serif; font-size: .72em; letter-spacing: -.1em; }
.lfj-section-heading > span { color: var(--lfj-muted); font-family: Georgia, serif; }

.lfj-search { position: relative; display: block; margin-bottom: 26px; }
.lfj-search::before { position: absolute; top: 50%; left: 16px; color: var(--lfj-accent); content: "⌕"; font-size: 1.25rem; transform: translateY(-52%); }
.lfj-search input { width: 100%; min-height: 52px; padding: 13px 16px 13px 46px; border: 1px solid var(--lfj-line); border-radius: 0; outline: 0; background: rgba(18, 17, 15, .88); color: var(--lfj-text); font: inherit; }
.lfj-search input:focus { border-color: var(--lfj-accent); box-shadow: inset 3px 0 0 var(--lfj-accent); }

.lfj-grid { display: grid; grid-template-columns: repeat(var(--lfj-columns, 6), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: archive-record; }
.lfj-film-card { position: relative; min-width: 0; padding: 8px; border: 1px solid rgba(232, 183, 53, .14); background: linear-gradient(155deg, rgba(27, 24, 19, .96), rgba(12, 11, 9, .98)); box-shadow: 0 13px 32px rgba(0, 0, 0, .22); counter-increment: archive-record; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.lfj-film-card::before { position: absolute; z-index: 3; top: 14px; left: 14px; min-width: 28px; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 5, 4, .82); color: #ddd3c1; content: counter(archive-record, decimal-leading-zero); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; letter-spacing: .08em; }
.lfj-film-card:hover { border-color: rgba(232, 183, 53, .5); box-shadow: 0 20px 44px rgba(0, 0, 0, .38); transform: translateY(-4px); }
.lfj-film-card[hidden] { display: none; }
.lfj-film-card__poster { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(255, 255, 255, .08); border-radius: 0; background: var(--lfj-panel); }
.lfj-film-card__poster img, .lfj-film-page__poster img, .lfj-diary-entry__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lfj-film-card__poster img { filter: saturate(.9); transition: filter .25s ease, transform .4s ease; }
.lfj-film-card:hover .lfj-film-card__poster img { filter: saturate(1.05) contrast(1.03); transform: scale(1.025); }
.lfj-film-card__poster:focus-visible { outline: 2px solid var(--lfj-accent); outline-offset: 3px; }
.lfj-film-card__overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; padding: 18px 10px; opacity: 0; background: linear-gradient(180deg, transparent 36%, rgba(5, 4, 3, .94)); transition: opacity .2s ease; }
.lfj-film-card__overlay span { padding-bottom: 3px; border-bottom: 1px solid var(--lfj-accent); color: var(--lfj-paper); font-size: .61rem; font-weight: 850; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.lfj-film-card__poster:hover .lfj-film-card__overlay { opacity: 1; }
.lfj-film-card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 12px 3px 5px; }
.lfj-film-card__info h3 { overflow: hidden; margin: 0; font-family: Inter, sans-serif; font-size: .82rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.lfj-film-card__info > span { color: var(--lfj-accent); font-family: ui-monospace, monospace; font-size: .65rem; }
.lfj-film-card__actions { position: absolute; z-index: 4; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 5px; }
.lfj-icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(232, 183, 53, .5); border-radius: 0; background: rgba(8, 7, 6, .9); color: var(--lfj-paper); cursor: pointer; font-weight: 900; }
.lfj-icon-button:hover, .lfj-icon-button.is-active { border-color: var(--lfj-accent); background: var(--lfj-accent); color: #100d06; }

.lfj-poster-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 15px; background: repeating-linear-gradient(135deg, #17140f 0 12px, #100e0b 12px 24px); color: var(--lfj-muted); text-align: center; }
.lfj-poster-placeholder > span { color: var(--lfj-accent); font-family: Georgia, serif; font-size: 2.5rem; }
.lfj-poster-placeholder small { font-weight: 750; }

.lfj-diary-list { position: relative; display: grid; gap: 16px; padding-left: 27px; }
.lfj-diary-list::before { position: absolute; inset: 0 auto 0 6px; width: 1px; background: linear-gradient(var(--lfj-accent), rgba(232, 183, 53, .05)); content: ""; }
.lfj-diary-entry { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; padding: 14px; border: 1px solid var(--lfj-line); border-left: 3px solid var(--lfj-highlight); border-radius: 0; background: rgba(18, 17, 15, .9); }
.lfj-diary-entry::before { position: absolute; top: 28px; left: -31px; width: 9px; height: 9px; border: 2px solid var(--lfj-bg); outline: 1px solid var(--lfj-accent); background: var(--lfj-accent); content: ""; transform: rotate(45deg); }
.lfj-diary-entry__poster { overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
.lfj-diary-entry__top { display: flex; justify-content: space-between; gap: 18px; }
.lfj-diary-entry h4 { margin: 2px 0 5px; font-size: 1.24rem; }
.lfj-diary-entry h4 span { margin-left: 5px; color: var(--lfj-muted); font-family: Inter, sans-serif; font-size: .66rem; font-weight: 500; }
.lfj-date { margin-bottom: 11px; color: var(--lfj-accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .69rem; letter-spacing: .05em; text-transform: uppercase; }
.lfj-rating { display: inline-flex; align-items: baseline; min-width: 54px; justify-content: center; gap: 2px; padding: 5px 8px; border: 1px solid var(--lfj-accent); background: rgba(232, 183, 53, .08); color: var(--lfj-accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.lfj-rating strong { font-size: .9rem; }
.lfj-rating small { font-size: .58rem; }
.lfj-heart { margin-left: 6px; color: #d84a54; }
.lfj-review__text { max-width: 820px; color: #d9d0c3; }
.lfj-review__text > :last-child { margin-bottom: 0; }
.lfj-entry-tags { display: inline-block; margin: 10px 0 0; padding: 3px 7px; border: 1px solid var(--lfj-line); color: var(--lfj-muted); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.lfj-review--spoiler:not(.is-revealed) .lfj-review__text { display: none; }
.lfj-spoiler-toggle { padding: 8px 10px; border: 1px solid var(--lfj-line); border-radius: 0; background: var(--lfj-panel-2); color: var(--lfj-muted); cursor: pointer; }
.lfj-empty { grid-column: 1 / -1; padding: 30px 0; color: var(--lfj-muted); }

.lfj-film-page, .lfj-show-page { position: relative; overflow: hidden; }
.lfj-film-page__backdrop { position: absolute; inset: 0 0 auto; height: 470px; background: linear-gradient(180deg, rgba(8, 7, 6, .1), var(--lfj-bg)), linear-gradient(90deg, rgba(8, 7, 6, .96), transparent 72%), var(--lfj-backdrop); background-position: center 24%; background-size: cover; opacity: .52; pointer-events: none; }
.lfj-film-page__layout { position: relative; display: grid; grid-template-columns: minmax(180px, 270px) minmax(0, 1fr); align-items: end; gap: clamp(28px, 5vw, 66px); padding-top: clamp(120px, 23vw, 280px); }
.lfj-film-page__poster { overflow: hidden; aspect-ratio: 2 / 3; padding: 6px; border: 1px solid var(--lfj-accent); border-radius: 0; background: #090806; box-shadow: 18px 22px 0 rgba(123, 17, 25, .2), 0 28px 70px rgba(0, 0, 0, .55); }
.lfj-film-page__details { padding-bottom: 12px; }
.lfj-film-page__details h1 { margin: 0 0 14px; font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -.04em; }
.lfj-byline, .lfj-film-page__copy { max-width: 780px; color: #d8d0c4; }
.lfj-genres { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.lfj-genres a { padding: 5px 9px; border: 1px solid var(--lfj-line); color: var(--lfj-muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lfj-film-page__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.lfj-film-page__reviews { position: relative; margin-top: 62px; }

.lfj-button { appearance: none; min-height: 44px; padding: 10px 17px; border: 1px solid var(--lfj-accent); border-radius: 0; background: var(--lfj-accent); color: #100d06; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: background .18s ease, color .18s ease, transform .18s ease; }
.lfj-button:hover { background: #ffd866; transform: translateY(-2px); }
.lfj-button--ghost { border-color: var(--lfj-line); background: transparent; color: var(--lfj-text); }
.lfj-button--ghost:hover, .lfj-button--ghost.is-active { border-color: var(--lfj-accent); background: rgba(232, 183, 53, .08); color: var(--lfj-accent); }
.lfj-button--danger { border-color: #aa3038; background: transparent; color: #e8737a; }
.lfj-single-review { display: grid; grid-template-columns: 1fr auto; gap: 13px; padding: 22px 16px; border-bottom: 1px solid var(--lfj-line); background: linear-gradient(90deg, rgba(232, 183, 53, .025), transparent); }
.lfj-single-review time { margin-right: 12px; color: var(--lfj-accent); font-family: ui-monospace, monospace; }
.lfj-single-review__copy { grid-column: 1 / -1; max-width: 820px; color: #d9d0c3; }
.lfj-list-description { max-width: 780px; margin-bottom: 28px; color: var(--lfj-muted); }

.lfj-progress { height: 5px; overflow: hidden; border: 1px solid rgba(232, 183, 53, .12); border-radius: 0; background: #0b0a08; }
.lfj-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lfj-highlight), var(--lfj-accent)); }
.lfj-progress-label { margin: 7px 0 9px; color: var(--lfj-muted); font-family: ui-monospace, monospace; font-size: .65rem; }
.lfj-status-select { width: 100%; padding: 8px; border: 1px solid var(--lfj-line); border-radius: 0; background: var(--lfj-panel); color: var(--lfj-text); font: inherit; font-size: .72rem; }
.lfj-status-badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--lfj-accent); border-radius: 0; color: var(--lfj-accent); font-size: .65rem; }
.lfj-tv-diary { display: grid; gap: 14px; }
.lfj-tv-entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px; border: 1px solid var(--lfj-line); border-left: 3px solid var(--lfj-accent); border-radius: 0; background: rgba(18, 17, 15, .9); }
.lfj-tv-entry__image { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, .09); border-radius: 0; background: var(--lfj-panel-2); }
.lfj-tv-entry__image img, .lfj-episode-row__image img, .lfj-episode-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lfj-tv-entry h3 { margin: 0 0 5px; font-size: 1.3rem; }
.lfj-show-progress-big { max-width: 460px; margin: 24px 0 14px; color: var(--lfj-muted); }
.lfj-show-progress-big strong { color: var(--lfj-text); font-family: Georgia, serif; font-size: 1.3rem; }
.lfj-show-progress-big .lfj-progress { height: 8px; margin-top: 9px; }
.lfj-seasons { position: relative; margin-top: 56px; border-bottom: 1px solid var(--lfj-line); }
.lfj-season { border-top: 1px solid var(--lfj-line); }
.lfj-season summary { display: flex; justify-content: space-between; padding: 18px 6px; cursor: pointer; list-style: none; }
.lfj-season summary::-webkit-details-marker { display: none; }
.lfj-season summary strong { font-family: Georgia, serif; font-size: 1.08rem; }
.lfj-season summary span { color: var(--lfj-muted); font-family: ui-monospace, monospace; font-size: .72rem; }
.lfj-episode-list { display: grid; gap: 8px; padding-bottom: 24px; }
.lfj-episode-row { display: grid; grid-template-columns: 38px 160px minmax(0, 1fr) 38px; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--lfj-line); border-radius: 0; background: var(--lfj-panel); }
.lfj-episode-row.is-watched { border-left: 3px solid var(--lfj-accent); }
.lfj-episode-row__number { color: var(--lfj-accent); font-family: ui-monospace, monospace; font-weight: 800; text-align: center; }
.lfj-episode-row__image { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 0; background: var(--lfj-panel-2); }
.lfj-episode-row__body h4 { margin: 0 0 4px; font-family: Inter, sans-serif; font-size: .9rem; }
.lfj-episode-row__body p { margin: 0; color: var(--lfj-muted); font-size: .76rem; }
.lfj-episode-page h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.lfj-episode-hero { overflow: hidden; max-width: 960px; margin-bottom: 28px; aspect-ratio: 16 / 9; border: 1px solid var(--lfj-accent); border-radius: 0; padding: 5px; background: #090806; }

.lfj-modal { width: min(650px, calc(100% - 28px)); padding: 0; border: 1px solid var(--lfj-accent); border-radius: 0; background: linear-gradient(145deg, #17140f, #0b0a08); box-shadow: 0 30px 90px rgba(0, 0, 0, .72); color: var(--lfj-text); font-family: Inter, Lato, system-ui, sans-serif; }
.lfj-modal::before { display: block; height: 4px; background: linear-gradient(90deg, var(--lfj-accent) 0 70%, var(--lfj-highlight) 70%); content: ""; }
.lfj-modal::backdrop { background: rgba(4, 3, 3, .84); backdrop-filter: blur(7px); }
.lfj-modal__close-form { position: absolute; z-index: 2; top: 13px; right: 13px; }
.lfj-modal__close-form button { border: 0; background: transparent; color: var(--lfj-muted); cursor: pointer; font-size: 1.8rem; }
.lfj-log-form { padding: clamp(24px, 5vw, 44px); }
.lfj-log-form h2 { margin: 0 0 24px; padding-right: 28px; color: var(--lfj-text); font-family: Georgia, serif; font-size: 2rem; }
.lfj-log-form label { display: grid; gap: 7px; color: var(--lfj-muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lfj-log-form input[type="date"], .lfj-log-form input[type="text"], .lfj-log-form select, .lfj-log-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--lfj-line); border-radius: 0; background: #080706; color: var(--lfj-text); font: inherit; text-transform: none; }
.lfj-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
.lfj-checks { display: flex; flex-wrap: wrap; gap: 17px; margin: 18px 0 24px; }
.lfj-checks label { display: flex; align-items: center; gap: 7px; }
.lfj-form-actions { display: flex; justify-content: space-between; gap: 10px; }
.lfj-form-status { min-height: 1.4em; margin: 14px 0 0; color: var(--lfj-accent); }

@media (max-width: 900px) {
	.lfj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lfj-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lfj-stat { border-bottom: 1px solid var(--lfj-line); }
	.lfj-stat:nth-child(3) { border-right: 0; }
	.lfj-stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 620px) {
	.lfj { margin-block: 16px; padding: 24px 15px; }
	.lfj-profile__hero { grid-template-columns: 1fr; min-height: 0; }
	.lfj-profile__masthead h2 { font-size: clamp(2.35rem, 14vw, 4rem); }
	.lfj-profile__seal { width: 120px; height: 120px; }
	.lfj-profile__seal strong { font-size: 2rem; }
	.lfj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lfj-stat, .lfj-stat:nth-child(3) { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--lfj-line); }
	.lfj-stat:nth-child(odd) { border-right: 1px solid var(--lfj-line); }
	.lfj-stat:last-child { border-bottom: 0; }
	.lfj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
	.lfj-film-card { padding: 6px; }
	.lfj-film-card__info { display: block; }
	.lfj-film-card__info h3 { margin-bottom: 3px; }
	.lfj-diary-list { padding-left: 20px; }
	.lfj-diary-list::before { left: 4px; }
	.lfj-diary-entry { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; padding: 10px; }
	.lfj-diary-entry::before { left: -23px; }
	.lfj-diary-entry__top { display: block; }
	.lfj-rating { margin-bottom: 9px; }
	.lfj-film-page__layout { grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 17px; padding-top: 120px; }
	.lfj-film-page__poster { padding: 3px; box-shadow: 8px 10px 0 rgba(123, 17, 25, .22); }
	.lfj-film-page__details h1 { font-size: 1.9rem; }
	.lfj-film-page__copy { grid-column: 1 / -1; }
	.lfj-tv-entry { grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
	.lfj-episode-row { grid-template-columns: 27px 86px minmax(0, 1fr) 32px; gap: 7px; }
	.lfj-episode-row__body p { display: none; }
	.lfj-form-row { grid-template-columns: 1fr; }
	.lfj-form-actions { align-items: stretch; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
	.lfj *, .lfj-modal * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
