.tpl-page { padding: 32px 0 88px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.tpl-hero { max-width: 760px; margin-bottom: 40px; }
.tpl-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tpl-hero p { color: var(--muted); font-size: 18px; margin: 16px 0 24px; }

.tpl-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tpl-cat, .tpl-item { display: flex; gap: 18px; padding: 18px; overflow: hidden; }
.tpl-poster { flex: none; width: 112px; height: 199px; object-fit: cover; border-radius: 14px; background: var(--soft); }
.tpl-body { min-width: 0; flex: 1; }
.tpl-body h2 { font-size: 20px; line-height: 1.25; }
.tpl-body h2 a { color: var(--ink); text-decoration: none; }
.tpl-body h2 a:hover { color: var(--blue); }
.tpl-body > p { color: var(--muted); margin: 6px 0 12px; }
.tpl-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-names a { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--ink); text-decoration: none; }
.tpl-names a:hover { color: var(--blue); }

.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 20px; }
.tpl-item { scroll-margin-top: 90px; }
.tpl-item:target { outline: 2px solid var(--blue); }
.tpl-item h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.tpl-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.tpl-facts li { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); }
.tpl-beats { margin: 0; padding-inline-start: 20px; font-size: 15px; }
.tpl-beats li { margin: 2px 0; }
.tpl-sample { font-size: 14px; font-style: italic; color: var(--muted); margin: 12px 0 16px; }
.tpl-sample span { font-style: normal; font-weight: 700; color: var(--ink); }
.tpl-item .btn { margin-top: 4px; }

.tpl-related { margin-top: 56px; }
.tpl-related h2 { font-size: 22px; margin-bottom: 14px; }
.tpl-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-related a { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tpl-related a:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 640px) {
  .tpl-cats, .tpl-list { grid-template-columns: 1fr; }
  .tpl-cat, .tpl-item { flex-direction: column; }
  .tpl-poster { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}
