/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023
 */

/**
 * Constant definitions shared between the Music app and the embedded Files/Share player
 */

:root {
	--music-albumart-small-border-radius: var(--border-radius);
	--music-albumart-large-border-radius: var(--border-radius);
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2024
 */

.music-progress-info {
	text-align: center;
	overflow: hidden;
}

.music-progress-info span {
	line-height: 30px;
}

.music-progress-info .seek-bar {
	width: 100%;
	height: 15px;
	margin: 0 auto 0 auto;
	position: relative;
	background-color: #eee;
}

.music-progress-info .seek-bar, .music-progress-info .play-bar, .music-progress-info .buffer-bar {
	display: block;
}

.music-progress-info .play-bar, .music-progress-info .buffer-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 15px;
	width: 0%;
	background-color: var(--color-primary, #1d2d44);
}

.ie .music-progress-info .play-bar, .ie .music-progress-info .buffer-bar {
	background-color: #1d2d44;
}

.music-progress-info .translucent {
	opacity: 0.75;
}

.music-progress-info .buffer-bar {
	opacity: 0.1;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023, 2024
 */

.music-volume-control .volume-icon {
	position: absolute;
	top: 0;
	left: 0;
}

.music-volume-control .volume-slider {
	position: absolute;
	width: 58px;
	height: 3px;
	min-height: 3px;
	top: 31px;
	left: 21px;
	margin: 0;
	-webkit-appearance: none;
	background-color: silver;
	transform: rotate(270deg);
}


.ie .music-volume-control .volume-slider {
	height:auto;
	top: 3px;
	left: 26px;
	background-color: transparent;
}

.music-volume-control .volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	background-color: #666;
	border-radius: 100%;
	width: 10px;
	height: 10px;
}

.music-volume-control .volume-slider:hover::-webkit-slider-thumb {
	cursor: pointer;
}

.music-volume-control .volume-slider::-moz-range-thumb {
	-moz-appearance: none;
	background-color: #666;
	border-radius: 100%;
	width: 10px;
	height: 10px;
}

.music-volume-control .volume-slider:hover::-moz-range-thumb {
	cursor: pointer;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023, 2024
 */

 /* "Tablet" style */
#music-controls.tablet {
	padding: 0;
}
#music-controls.tablet #albumart-container {
	margin-left: 10px;
}
#music-controls.tablet #info-and-progress {
	left: 230px;
	right: 140px;
}
#music-controls.tablet #title {
	font-size: 14px;
}

/* "Mobile" style */
#music-controls.mobile #prev {
	display: none;
}
#music-controls.mobile .control {
	margin-right: 0;
}
#music-controls.mobile #albumart-container {
	margin-left: 0;
	margin-right: 0;
}
#music-controls.mobile #info-and-progress {
	left: 160px;
	right: 50px;
}
#music-controls.mobile .music-volume-control {
	display: none;
}

/* "Extra narrow" style */
#music-controls.extra-narrow #song-info {
	width: 100%;
}
#music-controls.extra-narrow .music-progress-info {
	display: none;
}

/* Hide the music controls when menu on left is in collapsible mode (on portrait phone)
 * and the menu is open */
body.snapjs-left #music-controls {
	visibility: hidden;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2017 - 2025
 */

#music-controls .icon-music-dark {
	background-image: url(img/5347a8f54eb01e2ae5be.svg);
}

#music-controls .icon-radio-nav {
	background-image: url(img/463648f71ce4ea7920a0.svg);
}

#music-controls {
	height: 66px;
	width: 100%;
	padding: 0 20px 0 20px;
	position: fixed;
	bottom: 0;
	background-color: var(--color-main-background-translucent, rgba(255, 255, 255, .95));
	z-index: 50;
	text-align: left;

	/* For NC25+: */
	margin-bottom: var(--body-container-margin);
	border-bottom-right-radius: var(--body-container-radius);
}

.ie #music-controls {
	/* IE doesn't support the var() syntax */
	background-color: rgba(255, 255, 255, .95);
}

#music-controls.with-playlist {
	height: 90px;
}

#music-controls #playlist-area {
	display: none;
	width: 100%;
	height: 24px;
}

#music-controls.with-playlist #playlist-area {
	display: block;
}

#music-controls #playlist-area > span {
	margin-top: 5px;
	margin-left: 10px;
	font-size: 14px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: pre;
}

#music-controls #playlist-area #playlist-name {
	left: 10px;
	font-weight: bold;
	max-width: 66%;
}

#music-controls #playlist-area #menu-container {
	position: absolute;
	margin-left: 10px;
}

#music-controls #playlist-area .icon-more {
	border: none;
	background-color: transparent;
	vertical-align: top;
	min-height: 18px;
	margin-top: 8px;
	opacity: .4;
}

#music-controls #playlist-area .icon-more:hover {
	opacity: 1.0;
}

#music-controls, #music-controls * {
	display: inline-block;
	box-sizing: border-box;
}

#music-controls .separator {
	display: inline;
	border: none;
}

#music-controls .control {
	height: 52px;
	width: 52px;
	padding: 10px;
	margin: 9px 2px 5px;
	cursor: pointer;
	opacity: .4;
}

#music-controls .control.disabled {
	cursor: default !important;
	opacity: .15 !important;
}

#music-controls .control.small {
	height: 44px;
	width: 44px;
	margin: 13px 2px 9px;
}

#music-controls .control#close {
	height: 46px;
	width: 46px;
	margin: 0;
	padding: 15px;
	position: absolute;
	right: 0;
	top: 0;
}

#music-controls .control:hover:not(.disabled),
#music-controls .control:focus:not(.disabled) {
	opacity: 1;
}

#music-controls .svg {
	filter: var(--background-invert-if-dark);
}

#music-controls #albumart-container {
	position: relative;
	width: 50px;
	height: 50px;
	margin: 8px 12px 8px 20px;
}

#music-controls #albumart {
	position: absolute;
	height: 100%;
	width: 100%;
	background-size: cover;
	background-position: center;
	display: inline-block;
	border-radius: var(--music-albumart-small-border-radius);
}

.ie #music-controls #albumart {
	border-color: #ededed;
}

#music-controls #albumart-container.icon-loading #albumart {
	opacity: 0.2;
}

#music-controls #info-and-progress {
	display: inline-block;
	position: absolute;
	left: 260px;
	right: 180px;
	width: auto;
	height: 100%;
}

#music-controls #song-info {
	height: 100%;
	width: 50%;
	margin-top: 7px;
	vertical-align: top;
}

#music-controls #song-info span {
	width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	vertical-align: top;
}

#music-controls #title {
	font-weight: bold;
	font-size: 21px;
	line-height: 29px;
}

#music-controls .music-progress-info {
	width: 45%;
	margin: 0 auto 25px auto;
}

#music-controls .music-volume-control {
	position: absolute;
	right: 120px;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023 - 2025
 */
 
 /* Playlist tab view shown in the Files sidebar */

.musicPlaylistTabView p {
	margin-top: 24px;
	font-weight: bold;
}

.musicPlaylistTabView .loading {
	height: 50px;
}

.musicPlaylistTabView li {
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 8px;
}

.musicPlaylistTabView ol {
	list-style: decimal inside;
}

.musicPlaylistTabView ol li {
	cursor: pointer;
	list-style-type: decimal;
}

.musicPlaylistTabView ol li::marker {
	color: #767676;
}

.musicPlaylistTabView ol li:hover,
.musicPlaylistTabView ol li.current {
	transition: background-color 0.3s ease;
	background-color: var(--color-background-dark, #f7f7f7);
}

.ie .musicPlaylistTabView ol li:hover,
.ie .musicPlaylistTabView ol li.current {
	background-color: #f7f7f7;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023
 */

 #music-controls #playlist-area .popovermenu {
	box-sizing: content-box;
	padding: 0;
	bottom: 24px;
	transform: translateX(50%);
	right: 50% ;
	margin-right: 0;
	display: none;
}

#music-controls #playlist-area .popovermenu.open {
	display: block;
}

#music-controls #playlist-area .popovermenu ul {
	display: block;
	padding: 4px;
}

#music-controls #playlist-area .popovermenu ul li {
	padding: 0;
	white-space: nowrap;
}

#music-controls #playlist-area .popovermenu ul a {
	opacity: .7;
	line-height: 36px;
	padding-right: 10px;
}

#music-controls #playlist-area .popovermenu ul a:hover {
	opacity: 1.0;
}

#music-controls #playlist-area .popovermenu ul a span {
	display: inline;
}

#music-controls #playlist-area .popovermenu ul a [class^='icon-'] {
	padding: 18px 0 18px 36px;
	background-size: 16px;
}

/* Place the carret under the popup */
#music-controls #playlist-area .popovermenu::after {
	right: 50%;
	transform: translateX(50%) translateY(100%) rotate(180deg);
	bottom: 0;
}

#music-controls #playlist-area .popovermenu ul li.disabled a {
	cursor: default !important;
	opacity: .15 !important;
}

#music-controls #playlist-area .popovermenu ul li.disabled * {
	cursor: default !important;
}

#music-controls #playlist-area .popovermenu .hidden {
	display: none;
}

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2023
 */

/* Play overlay for individual shared file */
.play-overlay {
	visibility: hidden;
	cursor: pointer;
	position: relative;
	opacity: .7;
}

.publicpreview:hover ~ .play-overlay,
.play-overlay:hover {
	visibility: visible;
}


/*# sourceMappingURL=webpack.files_music_player.17cd8b45ab9a61b88594.css.map*/