/*
Theme Name: soundtrackmp3-ru
Author: Владислав Иванов
Description: Тема для базы текстов песен: тёмная архивная библиотека звукозаписей, янтарные и бирюзовые акценты, карта языков со звуковыми дугами, каталожные карточки разборов.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soundtrack
*/

/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }

/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #0E1116;
	--header: #0A0D12;
	--footer: #07090C;
	--anatomy: #171F27;
	--mosaic: #1D242E;
	--cream: #F2E9D8;
	--card: #EFE3C8;
	--text: #F4F0E6;
	--muted: #9BA7B4;
	--line: #2A3441;
	--amber: #F2A93B;
	--amber-dark: #C9831C;
	--teal: #2BD9C7;
	--pink: #E14B8A;
	--ink: #0E1116;
	--ink-muted: #4C5560;
	--sidebar: #141920;
	--font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--font-mono: "JetBrains Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-mono);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	background-image: radial-gradient(rgba(155, 167, 180, 0.07) 1px, transparent 1px);
	background-size: 14px 14px;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.12;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 1.4em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: underline solid var(--teal);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
	color: var(--teal);
}

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 1000;
	padding: 0.6em 1em;
	background: var(--amber);
	color: var(--ink);
}

.shell {
	width: min(92%, 1360px);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 960px) {
	.shell {
		width: 85%;
	}
}

/* ---------- Кнопки: янтарный прямоугольник с полосой слева ---------- */
.tag-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.6em 1.1em 0.6em 1.4em;
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--amber) linear-gradient(90deg, var(--ink) 0 5px, transparent 5px);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.tag-btn:hover,
.tag-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--ink);
	background-color: var(--teal);
}

/* ---------- Шапка ---------- */
.site-header {
	background: var(--header);
	border-bottom: 2px solid var(--amber);
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.4rem 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	text-decoration: none;
	color: var(--text);
}

.brand:hover {
	color: var(--text);
}

.brand-mark,
.brand-logo {
	flex: none;
	width: 74px;
	height: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
}

.brand-desc {
	margin-top: 0.45rem;
	font-family: var(--font-head);
	font-size: 0.9rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav-toggle {
	display: none;
	padding: 0.5em 0.9em;
	font-family: var(--font-head);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text);
	background: transparent;
	border: 1px solid var(--line);
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: inline-block;
	padding: 0.3em 0;
	font-family: var(--font-head);
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--text);
	border-bottom-color: var(--text);
}

.main-nav a:hover {
	color: var(--amber);
	border-bottom-color: var(--amber);
}

/* ---------- Заголовки секций ---------- */
.sect-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.6rem;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--text);
}

.sect-title::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	width: 100vw;
	max-width: 7.5vw;
	margin-right: 0.8rem;
	border-top: 2px solid var(--amber);
}

.sect-title--plain::before {
	display: none;
}

.sect-title--dark {
	color: var(--ink);
}

.sect-icon {
	flex: none;
	width: 1.05em;
	height: 1.05em;
	fill: none;
	stroke: var(--amber);
	stroke-width: 1.6;
	stroke-linejoin: round;
	stroke-linecap: round;
}

/* ---------- Блок 1: языки мира ---------- */
.langs {
	padding: 2.6rem 0 1.2rem;
	background: #0D1218;
}

.world {
	position: relative;
	max-width: 1536px;
	margin: 0 auto;
}

.world-img {
	display: block;
	width: 100%;
	height: auto;
}

.lang {
	position: absolute;
	transform: translateY(-50%);
	font-family: var(--font-head);
	font-size: clamp(0.72rem, 1.35vw, 1.2rem);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--text);
	text-shadow: 0 0 10px rgba(14, 17, 22, 0.9);
}

.lang--en { right: 71%; top: 25.5%; }
.lang--ru { left: 74.4%; top: 17.4%; }
.lang--ko { left: 72.9%; top: 32.6%; }
.lang--es { right: 64%; top: 70.3%; }
.lang--ja { left: 77%; top: 67.4%; }

/* ---------- Блок 2: анатомия песни ---------- */
.anatomy {
	padding: 2.8rem 0 3rem;
	background: var(--anatomy);
	border-top: 1px solid var(--line);
}

.song {
	display: grid;
}

.song > * {
	grid-column: 1;
	grid-row: 1;
}

.song-parts {
	display: grid;
	grid-template-columns: 380fr 400fr 260fr 280fr;
	grid-template-rows: auto 86px auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.part {
	display: contents;
}

.part b {
	grid-row: 1;
	padding-left: 2.5%;
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.part span {
	grid-row: 3;
	padding: 0.2rem 0.6rem 0 2.5%;
	font-size: 0.92rem;
}

.part--verse b, .part--verse span { color: #5B9BF5; }
.part--chorus b { color: #F06A72; }
.part--chorus span { color: var(--amber); }
.part--bridge b, .part--bridge span { color: var(--teal); }
.part--outro b, .part--outro span { color: var(--muted); }

.song-waves {
	display: block;
	align-self: center;
	width: 100%;
	height: auto;
	max-height: 86px;
}

/* ---------- Последние разборы: каталожные карточки ---------- */
.journal {
	padding: 3rem 0 3.4rem;
	color: var(--ink);
	background: var(--cream);
}

.journal .sect-title::before {
	border-top-color: var(--amber-dark);
}

.pieces {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.2rem;
	align-items: stretch;
}

.journal-more {
	margin: 2rem 0 0;
	font-size: 0.85rem;
}

.journal-more a {
	text-decoration-color: var(--ink);
}

.journal-more a:hover {
	color: var(--amber-dark);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0.7rem 0.7rem 1.1rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
	transform: translate(-3px, -3px);
	box-shadow: 4px 4px 0 var(--ink);
}

.card-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #2A3441;
}

.card-thumb img,
.card-blank {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.9rem 0.4rem 0;
}

.card-title {
	margin: 0 0 0.5rem;
	font-size: 1.45rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.1;
}

.card-title a {
	color: var(--ink);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--amber-dark);
}

.card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.6rem;
	font-size: 0.85rem;
	line-height: 1.45;
}

.card-excerpt p {
	margin: 0;
}

.card-foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.8rem;
	margin-top: auto;
}

.card-date {
	font-size: 0.74rem;
	color: var(--ink-muted);
}

/* ---------- Блок 3: строки на пяти языках ---------- */
.mosaic {
	padding: 2.8rem 0 3rem;
	background: var(--mosaic);
}

.lines {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.line {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 0.9rem 1.5rem;
	text-align: center;
	background: var(--tone);
}

.line b {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.line .orig {
	font-size: 0.88rem;
	line-height: 1.4;
}

.line .tr {
	font-size: 0.82rem;
	line-height: 1.4;
	color: #D5D9DE;
}

.line--en { --tone: #2A3340; }
.line--ru { --tone: #43293A; }
.line--es { --tone: #463A27; }
.line--ko { --tone: #1F4446; }
.line--ja { --tone: #353C47; }

/* ---------- Блок 4: рифма как схема ---------- */
.rhyme {
	padding: 2.8rem 0 3.2rem;
	background: var(--bg);
	border-top: 1px solid var(--line);
}

.rhyme-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 3rem;
}

.rhyme-scheme {
	width: min(100%, 440px);
	height: auto;
}

.rhyme-scheme text {
	font-family: var(--font-mono);
	font-size: 15px;
}

.rhyme-scheme .big {
	font-family: var(--font-head);
	font-size: 34px;
	font-weight: 500;
	text-anchor: middle;
}

.rhyme-scheme .w {
	text-anchor: middle;
}

.rhyme-scheme .c-teal {
	fill: var(--teal);
}

.rhyme-scheme .c-amber {
	fill: var(--amber);
}

.rhyme-scheme .ln {
	fill: none;
	stroke-width: 1.6;
}

.rhyme-scheme .ln-teal {
	stroke: var(--teal);
}

.rhyme-scheme .ln-amber {
	stroke: var(--amber);
}

.rhyme-note {
	max-width: 240px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.2rem 0 1.6rem;
}

.page-head h1 {
	margin: 0.7rem 0 0;
	font-size: clamp(2.1rem, 4.4vw, 3.6rem);
	font-weight: 500;
	color: var(--text);
}

.single .page-head h1 {
	font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.page-head .entry-meta {
	margin-top: 0.8rem;
	color: var(--muted);
}

.breadcrumbs {
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--text);
}

.breadcrumbs .sep {
	margin: 0 0.4em;
	color: var(--amber);
}

.site-main {
	padding: 0.6rem 0 4.5rem;
}

.layout-single {
	display: block;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 5%;
	align-items: start;
}

.content-area {
	min-width: 0;
}

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	box-shadow: 6px 6px 0 rgba(242, 169, 59, 0.35);
}

.entry-meta {
	font-size: 0.76rem;
	letter-spacing: 0.03em;
	color: var(--ink-muted);
}

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	font-size: 0.98rem;
	line-height: 1.7;
	hyphens: auto;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration-color: var(--amber-dark);
}

.entry-content a:hover {
	color: var(--amber-dark);
}

.entry-content h2 {
	font-size: 1.9rem;
}

.entry-content h3 {
	font-size: 1.45rem;
}

.entry-content h4 {
	font-size: 1.2rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.5em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.3em;
	top: 0.8em;
	width: 0.8em;
	border-top: 2px solid var(--amber-dark);
}

.entry-content ol > li::marker {
	font-weight: 700;
	color: var(--amber-dark);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-size: 1.35rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--text);
	background: var(--ink);
	border-left: 5px solid var(--teal);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border: 1px solid rgba(14, 17, 22, 0.35);
}

.entry-content th {
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
	background: var(--ink);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.74rem;
	color: var(--ink-muted);
}

.entry-content img {
	display: block;
}

.entry-content pre,
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: rgba(14, 17, 22, 0.08);
}

.entry-content pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
}

.entry-content hr {
	height: 0;
	margin: 2em 0;
	border: 0;
	border-top: 2px solid var(--amber-dark);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.78rem;
	border-top: 1px solid rgba(14, 17, 22, 0.25);
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	margin-top: 2rem;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
	border-left: 4px solid var(--amber);
}

.post-nav a:hover {
	color: var(--text);
	border-color: var(--teal);
}

.post-nav .nav-next {
	text-align: right;
	border-left-width: 1px;
	border-right: 4px solid var(--amber);
}

.post-nav small {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	align-items: stretch;
}

.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-empty {
	padding: 1.6rem 1.8rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.7em;
	padding: 0.55em 0.85em;
	font-size: 0.8rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: var(--ink);
	background: var(--teal);
}

.pager .page-numbers.current {
	color: var(--ink);
	background: var(--amber);
	border-color: var(--amber);
}

.pager .page-numbers.dots {
	min-width: 0;
	background: none;
	border-color: transparent;
}

.sheet .pager .page-numbers {
	color: var(--ink);
	background: transparent;
	border-color: rgba(14, 17, 22, 0.4);
}

/* ---------- Сайдбар ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
	border-top: 3px solid var(--amber);
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--text);
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li {
	padding: 0.55rem 0;
	font-size: 0.86rem;
	line-height: 1.45;
	border-bottom: 1px solid var(--line);
}

.sidebar a {
	color: var(--text);
}

.sidebar a:hover {
	color: var(--teal);
}

.sidebar .post-date,
.sidebar .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.7rem;
	color: var(--muted);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
}

.comments-title,
.comment-reply-title {
	font-size: 1.6rem;
	margin: 0 0 1rem;
	color: var(--text);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 1.6rem;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.74rem;
	color: var(--ink-muted);
}

.comment-head b {
	color: var(--ink);
}

.comment-wait {
	font-size: 0.82rem;
	color: var(--pink);
}

.comment-reply-link {
	font-size: 0.72rem;
	text-transform: uppercase;
	text-decoration-color: var(--amber-dark);
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--sidebar);
	border: 1px solid var(--line);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.8rem;
	font: inherit;
	font-size: 0.9rem;
	color: var(--ink);
	background: var(--text);
	border: 1px solid var(--line);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-size: 0.82rem;
	letter-spacing: 0;
	text-transform: none;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-size: 0.82rem;
	color: var(--muted);
}

/* ---------- Поиск и 404 ---------- */
.search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0 0 1.4rem;
	font-family: var(--font-head);
	font-size: clamp(7rem, 20vw, 14rem);
	font-weight: 500;
	line-height: 0.85;
	color: transparent;
	-webkit-text-stroke: 2px var(--text);
}

.lost-code span {
	color: var(--amber);
	-webkit-text-stroke: 0;
}

.lost p {
	max-width: 620px;
}

.lost .tag-btn {
	margin-top: 1.4rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	color: var(--text);
	background: var(--footer);
	border-top: 1px solid var(--line);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.8rem 0 2.2rem;
}

.footer-col {
	min-width: 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--text);
}

.footer-col .widget-title {
	margin: 0 0 0.7rem;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--text);
}

.footer-col p {
	margin: 0 0 0.6em;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin-bottom: 0.25rem;
}

.footer-col a {
	color: var(--text);
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--teal);
}

.copyright {
	margin: 0;
	padding: 1.1rem 0 1.5rem;
	font-size: 0.78rem;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.5rem;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.3rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--text);
	background: var(--header);
	border: 1px solid var(--line);
	border-top: 2px solid var(--amber);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
	.nav-toggle {
		display: inline-block;
	}

	.main-nav {
		flex-basis: 100%;
	}

	.main-nav[data-open="false"] {
		display: none;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav li + li {
		border-top: 1px solid var(--line);
	}

	.main-nav a {
		display: block;
		padding: 0.6em 0;
	}

	.sect-title::before {
		display: none;
	}

	.lang {
		font-size: clamp(0.6rem, 2.1vw, 0.9rem);
		letter-spacing: 0.04em;
	}

	.song-parts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 1.2rem 1rem;
	}

	.part {
		display: flex;
		flex-direction: column;
	}

	.part b,
	.part span {
		padding-left: 0;
	}

	.song > * {
		grid-row: auto;
	}

	.song-waves {
		margin-top: 1.4rem;
	}

	.pieces,
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lines {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.line--ja {
		grid-column: 1 / -1;
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}

	.footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 14px;
	}

	.brand-mark,
	.brand-logo {
		width: 54px;
	}

	.pieces,
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
	}

	.lines {
		grid-template-columns: minmax(0, 1fr);
	}

	.sheet {
		padding: 1.6rem 1.3rem 1.8rem;
	}

	.sidebar {
		padding: 1.3rem 1.2rem;
	}

	.comment-respond {
		padding: 1.2rem 1.1rem;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.search-form {
		flex-direction: column;
	}

	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
	}
}
