.wxpn-playlists-page {
	padding: 40px 0 72px;
	width: 100%;
	background: #fff;
}

.wxpn-playlists-page__wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px;
}

.wxpn-playlists-page__header {
	margin-bottom: 22px;
}

.wxpn-playlists-page__title {
	margin: 0 0 6px;
	color: #242424;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.02;
}

.wxpn-playlists-page__description {
	max-width: 100%;
	color: #4f4f4f;
	font-size: 0.82rem;
	font-style: italic;
	line-height: 1.45;
}

.wxpn-playlists-page__description p {
	margin: 0;
}

.wxpn-playlists-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 28px;
	align-items: start;
}

.wxpn-playlists-controls {
	display: grid;
	gap: 16px;
	margin-bottom: 18px;
	width: 100%;
}

.wxpn-playlists-tabs {
	display: flex;
	gap: 14px;
	margin-bottom: 10px;
}

.wxpn-playlists-tab {
	flex: 1 1 0;
	padding: 8px 0 10px;
	border: 0;
	border-bottom: 2px solid #d8d8d8;
	background: #fff;
	color: #1a1a1a;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease;
}

.wxpn-playlists-tab.is-active,
.wxpn-playlists-tab:hover {
	border-color: #111;
	color: #111;
}

.wxpn-playlists-tab-select-wrap {
	display: none;
}

.wxpn-playlists-tab-select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid #111;
	background: #fff;
	color: #111;
	font-size: 0.95rem;
	font-weight: 700;
}

.wxpn-playlists-filters {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	gap: 0;
	align-items: end;
}

.wxpn-playlists-controls .wxpn-playlists-filters {
	display: none;
}

.wxpn-playlists-filter {
	display: block;
}

.wxpn-playlists-filter input {
	width: 100%;
	min-height: 56px;
	padding: 0 10px;
	border: 1px solid #cfcfcf;
	background: #fff;
	color: #111;
	font-size: 0.74rem;
	font-weight: 400;
}

.wxpn-playlists-search-button {
	min-height: 56px;
	border: 0;
	background: #e45a16;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	cursor: pointer;
}

.wxpn-playlists-status {
	min-height: 24px;
	margin-bottom: 14px;
	color: #606060;
	font-size: 0.82rem;
}

.wxpn-playlists-results {
	min-height: 320px;
	width: 100%;
}

.wxpn-playlists-group {
	margin-bottom: 26px;
}

.wxpn-playlists-group__title {
	margin: 0 0 14px;
	padding-bottom: 7px;
	border-bottom: 1px solid #111;
	color: #111;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
}

.wxpn-playlists-group__rows {
	display: grid;
	gap: 0;
}

.wxpn-playlists-track {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: start;
	padding: 8px 0 10px;
	border-bottom: 1px solid #d0d0d0;
}

.wxpn-playlists-track__time {
	display: inline-flex;
	flex: 0 0 80px;
	align-items: flex-start;
	gap: 2px;
	width: 80px;
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.wxpn-playlists-track__time-value {
	line-height: 1;
}

.wxpn-playlists-track__time-period {
	font-size: 12px;
	line-height: 16px;
	text-transform: uppercase;
}

.wxpn-playlists-track__art {
	display: block;
	width: 100px;
	flex: 0 0 auto;
	aspect-ratio: 1;
	overflow: hidden;
	background: #111;
}

.wxpn-playlists-track__main {
	flex: 1 1 auto;
	min-width: 0;
}

.wxpn-playlists-track__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wxpn-playlists-track__title {
	margin: 0 0 2px;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.wxpn-playlists-track__meta {
	margin-top: 0.3125rem;
	color: #4f4f4f;
	font-size: 14px;
	line-height: 1.35;
}

.wxpn-playlists-track__artist,
.wxpn-playlists-track__album {
	display: block;
}

.wxpn-playlists-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	padding-top: 12px;
}

.wxpn-playlists-pagination__button {
	min-width: 26px;
	min-height: 26px;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #c34817;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
}

.wxpn-playlists-pagination__button.is-current {
	color: #111;
}

.wxpn-playlists-empty,
.wxpn-playlists-page__empty {
	color: #6b7280;
	font-size: 1rem;
	line-height: 1.6;
}

.wxpn-playlists-page__sidebar {
	display: grid;
	gap: 16px;
	align-content: start;
	max-width: 350px;
}

.wxpn-playlists-page .wxpn-default-page__sidebar-card .wxpn-default-page__sidebar-shell {
	margin-top: -1px;
}

.wxpn-playlists-page__rail-card--dark {
	background: linear-gradient(180deg, #191919 0%, #111 100%);
}

.wxpn-playlists-page__rail-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wxpn-playlists-page__clear-date {
	padding: 0 4px 0 0;
	border: 0;
	background: transparent;
	color: #e45a16;
	font-size: 0.62rem;
	font-weight: 700;
	cursor: pointer;
}

.wxpn-playlists-page__rail-body {
	padding: 12px;
}

.wxpn-playlists-page__calendar-header {
	display: grid;
	grid-template-columns: 26px 1fr 26px;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.wxpn-playlists-page__calendar-label {
	color: #111;
	font-size: 0.72rem;
	font-weight: 700;
	text-align: right;
}

.wxpn-playlists-page__calendar-nav {
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.wxpn-playlists-page__calendar-weekdays,
.wxpn-playlists-page__calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.wxpn-playlists-page__calendar-weekdays {
	margin-bottom: 4px;
}

.wxpn-playlists-page__calendar-weekdays span {
	color: #111;
	font-size: 0.6rem;
	font-weight: 700;
	text-align: center;
}

.wxpn-playlists-page__calendar-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 1rem;
	cursor: pointer;
}

.wxpn-playlists-page__calendar-day.is-outside {
	color: #a1a1a1;
}

.wxpn-playlists-page__calendar-day.is-selected {
	border-radius: 999px;
	background: #e45a16;
	color: #fff;
	font-weight: 700;
}

.wxpn-playlists-page__calendar-day.is-today {
	box-shadow: inset 0 0 0 1px #111;
	border-radius: 999px;
}

.wxpn-playlists-page__rail-body p {
	margin: 0;
	color: #2a2a2a;
	font-size: 0.72rem;
	line-height: 1.55;
}

.wxpn-playlists-page__rail-card--dark .wxpn-playlists-page__rail-body p {
	color: #fff;
}

.wxpn-playlists-page__sidebar-date input {
	position: absolute;
	left: -9999px;
}

.wxpn-playlists-page__mobile-search {
	display: block;
	margin-bottom: 14px;
}

/* @media (max-width: 900px) {
	.wxpn-playlists-page__layout {
		grid-template-columns: 1fr;
	}

	.wxpn-playlists-page__sidebar {
		grid-template-columns: repeat(1, minmax(0, 1fr));
		max-width: none;
	}
	
} */
@media (max-width: 900px) {
    .wxpn-playlists-page__layout {
        display: flex;
        flex-direction: column;
    }

    .wxpn-playlists-page__sidebar {
        display: contents;
        max-width: none;
    }

    /* All sidebar children need explicit full width since display:contents removes the wrapper */
    .wxpn-playlists-page__sidebar > * {
        width: 100%;
        order: 3;
    }

    /* Calendar card — moves to top, full width */
    .wxpn-playlists-page__sidebar > :first-child {
        order: 1;
		max-width: 420px;  /* adjust this value to taste */
        margin: 0 auto;    /* center it if the page is wider */
    }

    /* Main playlist results */
    .wxpn-playlists-page__main {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 768px) {
	.wxpn-playlists-page {
		padding: 28px 0 52px;
	}

	.wxpn-playlists-page__wrap {
		padding: 0 18px;
	}

	.wxpn-playlists-page__title {
		font-size: 2.1rem;
	}

	.wxpn-playlists-tabs {
		display: none;
	}

	.wxpn-playlists-tab-select-wrap {
		display: block;
	}

	.wxpn-playlists-track {
		flex-direction: row;
		gap: 10px;
	}

	.wxpn-playlists-track__art {
		width: 75px;
		max-width: 75px;
	}

	.wxpn-playlists-filters {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.wxpn-playlists-page__layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.wxpn-playlists-page__main {
		order: 2;
	}

	.wxpn-playlists-page__sidebar {
		display: contents;
	}

	.wxpn-playlists-page__sidebar > * {
		order: 3;
		width: 100%;
		margin-bottom: 0;
	}

	.wxpn-playlists-page__sidebar > :first-child {
		order: 1;
	}

	.wxpn-playlists-page__mobile-search {
		display: block;
		margin-bottom: 14px;
	}

	.wxpn-playlists-page__main > .wxpn-playlists-status {
		display: none;
	}
}
