.dark-mode {
	display: none;
}

@media (prefers-color-scheme: dark) {

	.light-mode {
		display: none;
	}
	.dark-mode {
		display: block !important;
	}
}

.drag-handle {
	display: none;
}

@media (pointer: coarse) {
	/* touchscreen */
	.drag-handle {
		display: inline !important;
	}
}

ul li {
	list-style: disc !important;
}

ul {
	padding: 0px 10px 0px 18px;
}

.podcast-image {
	float: left;
	max-width: 120px;
	max-height: 120px;
	padding-right: 20px;
}

.podcast {
	position: relative;
	min-height: 140px;
}

.podcast:hover {
	cursor: pointer;
	background: #bfeafb;
}

.unplayed-episodes
{
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	height: 50px;
	color: black;
	font-size: 1em;
	font-weight: bold;
	text-align: center;
	padding-left: 15px;

	background: linear-gradient(-135deg,#f9933a 50%,transparent 0);
	overflow: hidden;
}

.unplayed-episodes > img
{
	padding: 5px 7px;
}

@media (prefers-color-scheme: dark) {
	.podcast:hover {
		background: rgba(65, 184, 255, 0.23) !important;
	}
}

.podcast-search-image {
	float: left;
	max-width: 220px;
	max-height: 220px;
	padding-right: 20px;
}

.podcast-search {
	min-height: 240px;
}

.action-links {
	height: 1em;
	position: absolute;
	bottom: 20px;
	right: 5px;
}

.top-action {
	float: right;
	margin-left: 3px;
	text-align: right;
}

.podcast > .top-action {
	margin-top: 7px;
	z-index: 1;
	position: relative;
}

.top-action > img {
	height: 35px;
	padding: 6px;
}

.podcast-list-actions > img {
	height: 35px;
	width: 35px;
	padding: 6px;
}

.podcast-list-actions > .auto-add {
	padding: 3px !important;
}

.podcast-list-actions {
	margin-bottom: 5px;
}

.playlist-remove {
	width: 30px !important;
}

.episode {
	min-height: 200px;
	cursor: grab;
}

.playlist-image {
	float: left;
	max-width: 180px;
	max-height: 180px;
	padding-right: 20px;
}

.episode > p, .episode > a {
	font-size: 0.9em;
}

.episode > h5 {
	margin-right: 130px;
}

.desc {
	font-size: 0.9em;
}

.date {
	font-style: italic;
	color: #777;
}

.duration {
	color: #777;
	float: right;
}

.sort-button {
	width: 28px !important;
	padding: 4px !important;
}

.progress img {
	width: 28px !important;
	padding: 4px !important;
}

.img-button {
	padding: 6px;
	width: 40px;
}

@media (prefers-color-scheme: dark) {
	.img-button:not(.colored){
		filter: invert(100%);
		-webkit-filter: invert(100%);
	}

	.proxied {
		filter: invert(100%);
	}

	.loading > img {
		filter: invert(100%);
		-webkit-filter: invert(100%);
	}
}

.in-playlist {
	filter: invert(42%) sepia(75%) saturate(637%) hue-rotate(188deg) brightness(97%) contrast(91%) !important;
}

.img-button:hover {
	cursor: pointer;
	background: #4acdff;
	border-radius: 5px;
}

.help-button {
	width: 50px;
	float: right;
}

.add-button {
	float: right;
	width: 40px;
}

.add-podcast-button {
	width: 40px;
}

.sort-order {
	float: right;
}

.sort-order > button {
	font-size: 0.9em;
	padding: 5px 10px;
}

.error {
	color: red;
	font-weight: bold;
}

.auto-proxy {
	font-size: 0.9em;
	color: #777;
	display: inline;
}

#alert {
	font-size: 0.9em;
	color: #eee;
	font-weight: bold;
	position: fixed;
	top: 50px;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);

	padding: 20px;

	border-radius: 10px;
	background: #158cba;


	/* override dialog default values */
	width: auto;
	right: auto;
	bottom: auto;
	min-width: auto;
	min-height: auto;
}

.alert-success {
	background: #5eb01f !important;
	color: #eee !important;
}

.alert-error {
	background: #f23920 !important;
	color: #333 !important;
}

.close-img {
	width: 1em;
}

.submenu > .close-img {
	float: right;
}


.submenu {
	width: fit-content;

	font-size: 1.1em;
	color: rgba(0, 0, 0, 0.87);
	font-weight: bold;

	padding: 10px;

	border-radius: 4px;
	background: rgb(240, 235, 238);
	border: solid 1px #999;

	position: absolute;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
	z-index: 10;
}

.submenu > div {
	width: fit-content;
	display: inline-block;
	margin: 7px;
}

.submenu-content {
}

.submenu-content > ul li {
	list-style-type: none !important;
}

.footer {
	font-size: 0.8em;
}

.user-menu {
	float: right;
	font-size; 0.8em;
}

.user-menu > a {
	color: #333;
	--pico-text-decoration: none;
}

#user-menu {
	font-size: 0.9em !important;
	font-weight: normal;
}

.user-menu > * {
	vertical-align: middle;
}

.small {
	max-width: 400px;
	margin-right: auto;
	margin-left: auto;
}

.user-icon {
	width: 40px;
	vertical-align: middle;
	margin-left: 0.1em;
}

audio {
	width: 70% !important;
}

.alpaca {
	text-align: center;
	max-width: 200px;
	float: right;
}

.podcast-actions {
	float: right;
	text-align: center;
	display: block;
}

.podcast-actions img {
	padding: 4px !important;
	margin-bottom: 10px;
	width: 35px !important;
}

.paging {
	margin-top: 13px;
}

.paging > *{
	width: 28px;
	padding: 2px 4px !important;
	background: #eee;
	border-radius: 5px;
	border: solid 2px #555;
	margin-right: 3px;
	margin-bottom: 5px;
	vertical-align: middle;
}

.paging > img {
	padding: 4px !important;
	margin-bottom: 2px !important;
}

.paging > a {
	color: #111;
	--pico-text-decoration: none;
}

.paging > a:hover {
	cursor: pointer;
	background: #4acdff;
	--pico-text-decoration: none;
}

@media (prefers-color-scheme: dark) {
	.paging > a {
		background: rgba(11, 173, 255, 0.19) !important;
		color: #fff;
	}

	.paging > a:hover {
		background: rgba(65, 184, 255, 0.23) !important;
	}
}

.paging > .active {
	background: #a8e7ff;
}

.paging > .disabled {
	background: #b3b3b3;
}

.paging > .disabled:hover {
	cursor: not-allowed;
	background: #999;
}

.logo {
	height: 70px;
}

.tab-menu {
	display: none;
}

.counter {
	float: right;
	margin-right: 10px;
	color: #777;
}

.toggle-progress {
	margin-right: 10px;
	display: none;
}

#confirm article {
	padding: 30px;
}

#confirm form {
	float: right;
}

#confirm-content {
	font-weight: bold;
	font-size: 2em;
	margin-bottom: 30px;
}

.confirm-no
{
	background-color: #ccc;
	color: #000;
}

.confirm-yes
{ }

.drag-ghost
{
	opacity: 80%;
	background-color: #c8ebfb;
}

.empty-playlist
{
	text-align: center;
	margin-top: 80px;
}

#podcast-search
{
	margin: 0px;
	background: url(/assets/images/search.svg) no-repeat right;
	background-size: 23px;
	padding: 4px 25px 4px 5px;
	height: calc(1rem * var(--pico-line-height) + var(--pico-border-width) * 2 + 8px);
	width: 400px;
	display: inline;
}

.error-info
{
	font-weight: bold;
	color: red;
}

.loading
{
	text-align: center;
	padding-top: 40px;
}
