body {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	scroll-behavior: smooth;
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}
h1 {
	font-family: "Dongle";
	font-size: 5rem;
	text-align: center;
	color: var(--accent);
	padding-top: 10rem;
	padding-bottom: 2rem;
}

.theme-bedtime {
	--card-width: 920px;
}

.daily-story {
	margin: 2rem auto;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	justify-items: left;
	gap: 1.25rem;
	padding: 1.25rem 1.5rem;
	background: rgba(17, 24, 32, 0.55);
	border: 1px solid var(--border);
	border-radius: 20px;
	backdrop-filter: blur(6px);
}

.play-btn {
	inline-size: 86px;
	block-size: 86px;
	border-radius: 999px;
	border: 1px solid rgba(127, 163, 255, 0.18);

	background: radial-gradient(
		circle at 30% 30%,
		rgba(184, 169, 255, 0.18),
		rgba(17, 24, 32, 0.9)
	);

	display: grid;
	place-items: center;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		border-color 0.25s ease;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.play-btn:hover {
	transform: translateY(-1px);
	border-color: var(--accent2);
}

.play-btn:active {
	transform: translateY(0px) scale(0.99);
}

.play-btn:focus-visible {
	outline: 2px solid var(--accent2);
	outline-offset: 4px;
}

.icon {
	inline-size: 28px;
	block-size: 28px;
	fill: var(--text);
	opacity: 0.95;
}

.icon-pause {
	display: none;
}

.play-btn.is-playing .icon-play {
	display: none;
}

.play-btn.is-playing .icon-pause {
	display: block;
}

.player-meta {
	line-height: 1.2;
}

.story-label {
	line-height: 1.2;
	min-height: calc(1 * 1.2em);
	font-size: 1.4rem;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story-sub {
	margin: 0.35rem 0 0 0;
	color: var(--muted);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.2;

	min-height: calc(2 * 1.2em);

	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.player-controls {
	justify-items: center;
	margin-top: 0.75rem;
	display: grid;
	gap: 0.5rem;
	width: 100%;
}

.progress {
	width: clamp(240px, 72vw, 700px);
	margin-inline: auto;
	appearance: none;
	height: 6px;
	border-radius: 999px;
	background: rgba(127, 163, 255, 0.18);
	outline: none;
}

.progress::-webkit-slider-thumb {
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--accent2);
	border: 1px solid rgba(127, 163, 255, 0.25);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.progress::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--accent2);
	border: 1px solid rgba(127, 163, 255, 0.25);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.time {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	font-size: 0.85rem;
	color: var(--muted);
}

.time-sep {
	opacity: 0.6;
}

.story-list {
	width: min(100%, var(--card-width));
	margin: 2rem auto 6rem;
	display: grid;
	gap: 1.2rem;
}

.story-item.daily-story {
	margin: 0 auto;
}

.story-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.2rem 1.4rem;
	border-radius: 18px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	backdrop-filter: blur(6px);

	transition:
		transform 0.15s ease,
		border-color 0.2s ease;
}

.story-card:hover {
	transform: translateY(-2px);
	border-color: var(--accent2);
}

.story-info {
	display: grid;
	gap: 0.25rem;
}

.story-title {
	font-weight: 700;
	color: var(--accent2);
}

.story-desc {
	font-size: 0.9rem;
	color: var(--muted);
}

.story-play {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(127, 163, 255, 0.2);
	background: rgba(17, 24, 32, 0.8);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.story-play svg {
	width: 16px;
	height: 16px;
	fill: var(--text);
}

.daily-story,
.story-item.daily-story {
	width: min(100%, var(--card-width));
	max-width: var(--card-width);
	margin-inline: auto;
}

.bts-links {
	padding-bottom: 3rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5rem;
	padding: 7rem 1.5rem 2rem;
	flex-wrap: wrap;
}

.btscard {
	width: min(100%, 600px);
	aspect-ratio: 254 / 190;
	background: var(--bg);
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 20px;
	text-align: center;
	padding: 1rem;
	cursor: pointer;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	text-decoration: none;
	color: inherit;
}

.btscard h2 {
	position: relative;
	z-index: 2;
	color: var(--text);
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.1;
	letter-spacing: 1px;
	font-family: "Dongle", sans-serif;
}

.btscard::before {
	content: "";
	position: absolute;
	width: 140px;
	height: 160%;
	background-image: linear-gradient(180deg, var(--accent), var(--accent2));
	animation: rotBGimg 4s linear infinite;
	transition: all 0.2s linear;
}

.btscard::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 15px;
	background: linear-gradient(180deg, #162131 0%, #0f1724 100%);
	z-index: 1;
}

@keyframes rotBGimg {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.btscard:hover {
	transform: translateY(-4px);
	transition: transform 0.25s ease;
}

@media (max-width: 768px) {
	.bts-links {
		gap: 2.5rem;
		padding: 6rem 1rem 2rem;
	}

	.btscard {
		width: min(100%, 240px);
	}
}

@media (max-width: 480px) {
	.bts-links {
		flex-direction: column;
		min-height: 100dvh;
		padding: 0rem 1rem 2rem;
	}

	.btscard {
		width: min(100%, 220px);
		aspect-ratio: 190 / 254;

		border-radius: 18px;
	}

	.btscard::after {
		border-radius: 13px;
	}
}
