@font-face {
	font-family: "ContentFont";
	src: url("fonts/content.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "ContentFont", serif;
}


body {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 24px 16px 140px;
	background: #000;
}

.background {
	position: fixed;
	inset: 0;
	background:
		linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
		url("bg.jpg") center / cover no-repeat;
	z-index: -1;
}

.center-box {
	width: min(700px, 100%);
	height: min(520px, calc(100svh - 260px));
	min-height: 160px;
	border: 2px solid #c88a25;
	background: rgba(255, 123, 0, 0.507);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

.tabs {
	display: flex;
	flex-shrink: 0;
	border-bottom: 1px solid #c88a25;
}

.tabs button {
	flex: 1;
	background: none;
	border: none;
	border-right: 1px solid #c88a25;
	color: #f0b23a;
	padding: 12px 0;
	cursor: pointer;
    font-family: "ContentFont", serif;
}

.tabs button:last-child {
	border-right: none;
}

.tabs button:hover {
	background: rgba(255,180,60,0.15);
}

.content {
	padding: 20px;
	color: #e2bb0e;
	font-size: 20px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.content[data-tab="works"] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(120px, 28%);
	gap: 20px;
	align-items: center;
}

.content a {
	color: #f0b23a;
	text-decoration: none;
}

.content a:hover {
	text-decoration: underline;
}

.works-block {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.work-note {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.muted {
	opacity: 0.75;
	font-size: 16px;
}

.two-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
	align-items: stretch;
}


.divider {
   background: #c88a25;
   opacity: 0.8;
}

.col {
	padding: 0 18px;
	min-width: 0;
}


.col-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffd27d;
}

.col-text {
    font-size: 18px;
    line-height: 1.5;
}

.placeholder {
    opacity: 0.6;
    font-style: italic;
}

.player {
	position: fixed;
	left: 20px;
	bottom: 20px;
	width: min(350px, calc(100% - 40px));
	height: 100px;
	border: 2px solid #ff5100;
	background: rgba(180, 75, 5, 0.37);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	box-sizing: border-box;
	z-index: 10;
}

#player-container {
	position: absolute;
	left: -10000px;
	top: 0;
	width: 300px;
	height: 166px;
	overflow: hidden;
	pointer-events: none;
}

#player-container iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}


.player .controls {
	display: flex;
	gap: 10px;
	margin-top: 2px;
}

.player-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.player .controls button {
	background: none;
	border: none;
	color: #f0b23a;
	cursor: pointer;
	font-size: 18px;
	padding: 6px 10px;
}

.player .controls button:hover {
	background: rgba(255,180,60,0.08);
	border-radius: 4px;
}

.player .controls button:disabled {
	opacity: 0.45;
	cursor: default;
}

.player-info {
	color: #fff;
	font-family: "ContentFont", serif;
	color: #DC8D41;
	font-size: 16px;
	margin-top: 2px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.title {
	font-family: "ContentFont", serif;
	font-size: clamp(24px, 5vw, 38px);
	text-align: center;
	color: #ffffff;
	letter-spacing: 1px;
	text-shadow: 0 0 12px rgba(0,0,0,0.6);
	pointer-events: none;
}

#content-wrapper {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c88a25 transparent;
}

.tab-image {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	pointer-events: none;
	opacity: 0.9;
}

#img-works {
	width: 100%;
}

#img-about {
	width: 140px;
	margin: 24px auto 0;
}

.payment-block {
	display: grid;
	gap: 12px;
}

.payment-block .col-title {
	margin-bottom: 0;
}

#img-payment {
	width: 180px;
	margin: 8px auto 0;
}

@media (max-width: 560px) {
	.content {
		padding: 16px;
	}

	.content[data-tab="works"],
	.two-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.col {
		padding: 0;
	}

	.divider {
		height: 1px;
	}

	#img-works {
		width: 160px;
		justify-self: center;
	}
}
