/*
Theme Name: MYT
Description: Минималистичная тема с чёрным экраном и белой надписью «музыка».
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myt
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	min-height: 100%;
	margin: 0 !important;
	background: #000 !important;
}

body {
	min-height: 100vh;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
}

#wpadminbar {
	display: none !important;
}

.myt-screen {
	position: fixed;
	inset: 0;
	display: flex;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1rem;
	background: #000;
	color: #fff;
}

.myt-navigation {
	position: absolute;
	top: clamp(1.25rem, 4vh, 2.5rem);
	left: 0;
	width: 100%;
	padding: 0 1rem;
}

.myt-logo {
	position: absolute;
	top: 58px;
	left: 58px;
	z-index: 2;
	display: flex;
	width: 82px;
	height: 82px;
	transform: translate(-50%, -50%) rotate(-45deg);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	color: #fff !important;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.myt-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.myt-menu li {
	margin: 0;
	padding: 0;
}

.myt-menu a {
	color: #fff !important;
	font-size: clamp(0.8rem, 1.5vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.myt-menu a:hover,
.myt-menu a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

.myt-center {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.myt-title {
	position: absolute;
	top: 33.333vh;
	top: 33.333dvh;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	margin: 0;
	font-size: clamp(3rem, 12vw, 10rem);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	pointer-events: auto;
}

.myt-title a {
	color: #fff !important;
	text-decoration: none;
}

.myt-search {
	position: absolute;
	top: 80vh;
	top: 80dvh;
	left: 50%;
	display: flex;
	width: min(90vw, 68rem);
	transform: translate(-50%, -50%);
	min-height: 3.25rem;
	border: 0;
	pointer-events: auto;
}

.myt-search input {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0;
	outline-offset: -3px;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 7%, #fff 20%, #fff 80%, rgba(255,255,255,.55) 93%, transparent 100%) left bottom / 100% 1px no-repeat;
	color: #fff;
	font: inherit;
}

.myt-search input::placeholder {
	color: #bdbdbd;
}

.myt-search input:focus,
.myt-search input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.myt-search button {
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.myt-global-player {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: grid;
	min-height: 76px;
	grid-template-columns: auto minmax(130px, 220px) minmax(100px, 1fr) auto;
	align-items: center;
	gap: 0.85rem;
	padding: 0.65rem clamp(0.75rem, 2vw, 1.5rem);
	border-top: 1px solid #454545;
	background: rgba(8, 8, 8, 0.98);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
	color: #fff;
}

.myt-global-player[hidden] {
	display: none !important;
}

.myt-global-toggle {
	display: inline-flex;
	width: 2.6rem;
	height: 2.6rem;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.myt-global-toggle:hover,
.myt-global-toggle:focus-visible {
	background: #fff;
	color: #000;
}

.myt-global-track-info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.25rem;
}

.myt-global-title,
.myt-global-composer {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.myt-global-title {
	font-size: 0.9rem;
	font-weight: 600;
}

.myt-global-composer {
	color: #aaa;
	font-size: 0.75rem;
}

.myt-global-wave-slot {
	min-width: 0;
}

.myt-waveform {
	width: 100%;
	height: 36px;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	touch-action: pan-y;
}

.myt-waveform:focus-visible {
	outline: 1px solid #aaa;
	outline-offset: 3px;
}

.myt-waveform canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.myt-global-times {
	display: flex;
	min-width: 5.5rem;
	justify-content: space-between;
	gap: 0.5rem;
	color: #aaa;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.myt-global-audio-slot,
.myt-global-audio-slot audio,
.myt-track-audio {
	display: none !important;
}

.myt-has-global-player .myt-screen {
	bottom: 76px;
}

@media (max-width: 600px) {
	.myt-navigation {
		top: 7.5rem;
	}

	.myt-global-player {
		min-height: 88px;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		gap: 0.45rem 0.65rem;
		padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
	}

	.myt-global-toggle {
		grid-row: 1;
		grid-column: 1;
		width: 2.25rem;
		height: 2.25rem;
	}

	.myt-global-track-info {
		grid-row: 1;
		grid-column: 2 / 4;
	}

	.myt-global-wave-slot {
		grid-row: 2;
		grid-column: 1 / 3;
	}

	.myt-global-wave-slot .myt-waveform {
		height: 30px;
	}

	.myt-global-times {
		grid-row: 2;
		grid-column: 3;
		min-width: 4.6rem;
		font-size: 0.65rem;
	}

	.myt-has-global-player .myt-screen {
		bottom: 88px;
	}
}
