/* «Кинодневник» (film-diary.js): the entry on one's own profile and the diary window. */
.pp-diary { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 14px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pp-diary:hover { background: var(--line); }
.pp-diary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pp-diary-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(229, 160, 13, .14); color: var(--accent); }
.pp-diary-ico svg { width: 20px; height: 20px; }
.pp-diary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-diary-text b { font-size: 14.5px; }
.pp-diary-text small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.pp-diary > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }

.diary-modal { position: fixed; inset: 0; z-index: 2400; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); padding: 20px; }
.diary-modal.hidden { display: none; }
.dm-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 600px; max-height: calc(100dvh - 40px); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.dm-close { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.dm-close svg { width: 20px; height: 20px; }
.dm-close:hover, .dm-close:focus-visible { color: var(--text); background: var(--line); }
.dm-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.dm-head h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.dm-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(229, 160, 13, .14); color: var(--accent); }
.dm-ico svg { width: 22px; height: 22px; }
.dm-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dm-years { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-year { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.dm-year[aria-pressed="true"] { background: var(--line); color: var(--text); border-color: var(--accent); }
.dm-year:hover { color: var(--text); }
.dm-year:focus-visible, .dm-dl:focus-visible, .dm-open:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.dm-dl { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #1a1205; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.dm-dl svg { width: 18px; height: 18px; color: inherit; }
.dm-dl:disabled { opacity: .5; cursor: default; }
.dm-note { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: 8px 0 4px; }
.dm-status { color: var(--muted); font-size: 14px; text-align: center; padding: 28px 8px; }
.dm-status[hidden] { display: none; }
.dm-list { list-style: none; margin: 4px -6px 0 0; padding: 0 6px 0 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.dm-e { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.dm-e:first-child { border-top: 0; }
.dm-poster { position: relative; width: 46px; height: 69px; border-radius: 6px; overflow: hidden; background-color: #161c29; }
.dm-poster > svg { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px; color: var(--muted); }
.dm-poster.poster-skel:not(.noimg) > svg { opacity: 0; }
.dm-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-title { display: block; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.dm-open { cursor: pointer; }
.dm-open:hover { color: var(--accent); }
.dm-y { color: var(--muted); font-weight: 400; }
.dm-meta, .dm-with { color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.dm-e.partial .dm-meta { color: #c9a77a; }
.dm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.dm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 11.5px; }
.dm-tag svg { width: 12px; height: 12px; }
.dm-private { color: #aab2ff; }
.dm-scores { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.dm-mine { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; }
.dm-mine svg { width: 15px; height: 15px; }
.dm-hall { color: var(--muted); font-size: 12.5px; }
.dm-hall b { color: var(--text); }
@media (max-width: 560px) {
  .diary-modal { padding: 0; align-items: flex-end; }
  .dm-card { max-width: none; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 16px 14px 6px; }
  .dm-close { width: 44px; height: 44px; top: 8px; right: 8px; }
  .dm-year, .dm-dl { min-height: 44px; }
  .dm-dl { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dm-poster.poster-skel { animation: none; } }
