#albumCard.active {
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#albumCover img {
border-radius: 12px;
width: 100%;
height: 100%;
aspect-ratio: 1 / 1;	
object-fit: cover;
}

.albumRightBlock {
	position:relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
	margin-top:24px;
	z-index:2;
}

.albumRightBlock #albumInfo{
    width: 100%;
    align-items: center;
    text-align: center;
	z-index:1;
}


@media screen and (max-width: 800px) {
	#albumInfo {
		gap:4px;
	}
}


@media screen and (min-width: 800px) {

    .albumPrescription {
		flex-direction: row;
		align-items: center;
		padding: 16px;
		}

    #albumCover > img,
    #authorPhoto > img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .albumRightBlock {
		height:100%;
		margin:0;
		align-items: flex-start;
		}

	#authorInfoBtn{
		display:none;
	}

    .albumRightBlock #albumInfo{
        align-items: flex-start;
        text-align: left;
		gap:8px;
    }

    .album-title-edit,
    .album-author-edit,
    .album-year-edit,
    .album-genre-edit,
    .album-description-edit {
        text-align: left;
        justify-content: flex-start;
    }

    .albumRightBlock .cardActionButtons{
		position:absolute;
		bottom:0;
		left:0;
		padding: 0;
		width: 100%;
		display:flex;
		align-items: center;
		justify-content: flex-start;
		}

    #albumTracks .track-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

}

@media screen and (min-width: 800px) {
    .albumCardTitle {
        top: 12px;
    }

    .albumPrescription {
        border-radius: 16px;
    }

}

#albumInfo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#albumTitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

#albumTitleMain {
	 color: white;   
	 font-weight: 600;    
	 font-size: 28px;
}

#albumAuthor {
    width: 100%;
    color: var(--subtext);
    font-size: 16px;
    font-weight: 500;
}

#albumAuthorTitle {
    display: inline-flex;
    font-size: 16px;
    color: var(--subtext);
    flex-direction: row;
    align-items: center;
    align-content: center;
}

#albumAuthorTitle span,
#albumAuthorTitle .artist-link {
	font-size:18px;
	color: hwb(0deg 100% 0% / 80%);
	opacity:0.4;
}

#albumAuthorTitle > .artist-link {
    color: white;
    opacity:0.4;
}

#albumDescription {
	width: 100%;
	color: hwb(0deg 100% 0% / 40%);
	font-size: 12px;
	flex-shrink: 0;
	overflow: hidden;
	max-height: 60px;
	white-space: pre-wrap;
	word-break: break-word;
	cursor: pointer;
	text-align:left;
}

.album-description-wrap {
	width: 100%;
	position: relative;
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
}

@media screen and (max-width:800px){
	.album-description-wrap{
		padding:0 24px;
	}
}

.album-description-wrap > #albumDescription {
    flex: 1 1 100%;
    max-width: 100%;
}

.album-description-more {
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-end;
    display: inline;
}

.album-description-more:hover {
    opacity: 0.8;
}


#albumCard {
	background:linear-gradient(to bottom, var(--dominantColor, #000000), black);
	position:relative;
	height: 100%;
	width: 100%;
	flex-direction: column;
	align-items: center;
}

@media screen and (min-width:800px){
	#albumCard, 
	#artistCard{
		padding-top:60px;
	}
}

#albumCard .track-album-order {
	color: white;
	opacity:0.2;
}

.album-meta-value{
	color:var(--subtext);
}

.albumPrescription {
	margin-top:72px;
	position: relative;
	border-radius: 24px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media screen and (min-width: 800px) {

	.albumPrescription {
	margin-top:0px;
	background:none !important;
	}
}

#albumTitle {
	font-size: 24px;
	font-weight: 600;
	color: var(--text);
}

#albumAuthor {
	width: 100%;
	color: var(--subtext);
	font-size: 16px;
	font-weight: 500;
}

.albumTrackTitle h2{
	display:none;
}

#albumArrowback:hover {
	scale: 1.05;
	transition: all 0.27s ease;
}

#authorsBlock {
	width:100%;
	gap: 12px;
	display: flex;
	flex-direction: column;
}

.author-description-edit:hover, .album-description-edit:hover {
	cursor: text;
}

.author-description-edit:focus, .album-description-edit:focus {
	background: var(--top);
	border-color: var(--select);
	outline: none;
}

.author-description-edit:empty:before, .album-description-edit:empty:before {
	content: '';
	color: var(--subtext);
	opacity: 0.5;
}

.author-description-edit[data-placeholder]:empty:before {
	content: attr(data-placeholder);
	color: var(--subtext);
	opacity: 0.5;
}

.albumTrackTitle h2 {
    display: none;
}

#albumTracks .snippet {
    color: hwb(0deg 100% 0% / 40%);
}

#albumTracks .track-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.albumTrackTitle{
	width:100%;
}

@media screen and (min-width: 800px) {
	#albumTracks{
		margin-top: 12px;
	}
    #albumTracks .track-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(364px, 1fr));
        gap: 6px;
    }
}

@media screen and (max-width: 800px) {

    #albumTracks .track-title-text {
        color: white;
    }

    #albumTracks .artist-text,
    #albumTracks .track-artist {
        color: hwb(0deg 100% 0% / 40%);
    }

    #albumTracks .track-list > .track-item:last-child {
        margin-bottom: 16px;
    }

}

#albumTracks .track-cover {
    display: none;
}

#albumTracks .track-list.reorder-mode .track-item {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

#albumTracks .track-list.reorder-mode .track-item:active {
    cursor: grabbing;
}

#albumTracks .track-list.reorder-mode .track-item:hover {
    background: none;
}

.album-genre-edit {
	color:white;
	opacity:0.4;
    flex-shrink: 0;
    display: flex;
    cursor: text;
    outline: none;
    user-select: text;
    font-size: 14px;
}

.album-genre-edit:hover {
    cursor: text;
}

#albumYearTitle{
	color:white;
	opacity:0.4;
}
.album-genre-edit:focus {
    background: var(--top);
    border-color: var(--select);
    outline: none;
}

.album-genre-edit[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--subtext);
    opacity: 0.5;
}

.admin-view .album-year-edit:empty::before,
.admin-view .album-genre-edit:empty::before,
.admin-view .album-title-edit:empty::before,
.admin-view .album-author-edit:empty::before {
    content: attr(data-placeholder);
    color: var(--subtext);
    opacity: 0.4;
    pointer-events: none;
}

body:not(.admin-view) .album-year-edit:empty,
body:not(.admin-view) .album-genre-edit:empty,
body:not(.admin-view) .album-author-edit:empty {
    display: none;
}

.author-description-edit:hover,
.album-description-edit:hover {
    cursor: text;
}

.author-description-edit:focus,
.album-description-edit:focus {
    background: var(--top);
    border-color: var(--select);
    outline: none;
}

.author-description-edit:empty:before,
.album-description-edit:empty:before {
    content: '';
    color: var(--subtext);
    opacity: 0.5;
}


.albumStatsBlock:empty {
    display: none;
}

.album-stat {
    display: flex;
    gap: 4px;
    flex-direction: row;
    align-items: center;
    align-content: center;
}

.album-stat img {
    width: 12px;
    filter: var(--filter);
}

.album-stats {
    gap: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    color: var(--subtext);
}

.album-stats .album-stat-icon {
    width: 12px;
    filter: var(--filter);
    opacity: 0.3;
    flex-shrink: 0;
    object-fit: contain;
}

#albumPlayBtn,
#authorPlayBtn {
    background: white;
	
}

@media screen and (max-width: 800px) {
    #albumPlayBtn,
    #authorPlayBtn {
        background: white;
        padding: 28px;
		border-radius:50%;
    }

    #albumPlayBtn img,
    #authorPlayBtn img {
        filter: invert(0);
    }
}

@media screen and (min-width: 800px) {
    #albumPlayBtn img {
        filter: var(--filterinv);
    }
}

.albumPlayButtonBig {
    background: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    border: 2px solid var(--select);
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    justify-content: center;
    padding: 16px;
}

.albumPlayButtonBig img {
    width: var(--icon);
    filter: var(--filter);
}

.albumPlayButtonBig:active {
    transform: scale(0.98);
}

.albumPlayButtonBig p {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.albumPlayButtonBig.playing {
    background: none;
    border: 2px solid var(--subselect);
    color: var(--text);
}

.albumPlayButtonBig.playing img {
    filter: var(--filter);
}

.albumActionButtons {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

@media screen and (max-width: 800px) {
    .albumActionButtons {
        padding: 12px;
        gap: 24px;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }
}

.albumActionButtons .like-btn {
    opacity: 1;
}

.albumActionsBlock {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    width: 100%;
    border-radius: 24px;
}

@media screen and (min-width: 800px) {
    .albumActionsBlock {
        background: none;
    }
}

@media screen and (min-width: 800px) {

    .albumPrescription {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        padding: 12px;
    }

    #albumCover {
        width: 100% !important;
        min-width: 120px !important;
        max-width: 240px !important;
        flex-shrink: 0 !important;
        border-radius: var(--itemborder) !important;
        transform: none !important;
        opacity: 1 !important;
        --cover-opacity: 1 !important;
    }

    #albumCover > img {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
}


@media screen and (max-width: 800px) {

    .detail-layer.active {
        display: flex !important;
        flex-direction: column;
    }

    #albumCard{
        flex: 1 1 auto !important;
        width: 100%;
        background: linear-gradient(var(--dominantColor, #000000), black);
    }

   .albumTrackTitle {
	       padding: 12px;
	       color: var(--text);
	       width: 100%;
	       padding-bottom: calc(120px + var(--safe-bottom)) !important;
	       box-sizing: border-box;
	 }
	    #albumTracks .track-title-text {
		color:white;
		}

		    #albumTracks .artist-text, #albumTracks .track-artist {
		color:hwb(0deg 100% 0% / 40%);
		}
	
    #albumTracks .track-list > .track-item:last-child,
    #authorTracks .track-list > .track-item:last-child {
        margin-bottom: 16px;
    }

}

#albumCover {
	position: relative;
	height:100%;
	border-radius: 12px;
	background:var(--overlaytop);
	width:100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	z-index: 1;
	--cover-fade: 0px;
	--cover-opacity: 1;
	opacity: var(--cover-opacity);
	border:1px solid var(--overlaytop);
	box-shadow: 0 0 24px hwb(0deg 0% 100% / 5%);
}

.albumCoverWrap{
	position:relative;
	display:flex;
	width:100%;
	max-width:calc(min(100%, 360px) - 120px);
	height:100%;
	flex-direction: column;
	align-items: center;
}

.album-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--subtext);
    flex-wrap: wrap;
}

.album-meta-row .album-meta-sep {
	color:white;
    opacity: 0.4;
    font-size: 12px;
}

.album-meta-row:has(#albumGenreTitle:empty) .album-meta-sep {
    display: none;
}

.album-meta-row:has(#albumYearTitle:empty):has(#albumGenreTitle:empty) {
    display: none;
}

.album-stats-footer {
	width:100%;
	opacity: 0.2;
	display: flex;
	gap: 12px;
	flex-wrap: nowrap;
	padding: 24px;
	font-size: 12px;
	color: white;
	align-items: center;
	justify-content: center;
	background: none;
	flex-direction: row;
}

.album-stats-footer:empty {
    display: none;
}

.album-stats-footer .album-stat {
    display: inline-flex;
    align-items: center;
}

.cardPlay.album-download-btn {
    position: relative;
    transition: background 0.2s ease;
}

.cardPlay.album-download-btn.is-complete {
    background: var(--overlayPanel, var(--overlaytop));
}

.album-download-ring {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
    transform: rotate(-90deg);
    display: none;
}

.album-download-ring.is-visible {
    display: block;
}

.album-download-ring__track {
    fill: none;
    stroke: var(--select);
    stroke-width: 1;
    opacity:0.2;
}

.album-download-ring__progress {
    fill: none;
    stroke: var(--select);
    stroke-width: 1;
    stroke-dasharray: 144.51;
    stroke-dashoffset: 144.51;
    transition: stroke-dashoffset 0.35s ease;
}

.album-download-icon {
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 800px) {

#albumTitleMain,
#authorTitle {
    font-size: 24px;
    font-weight: 600;
    color: white;
		font-size:48px;
	}

	#albumPlayBtn img{
		filter:var(--filterinv);
	}

	.track-album-order {
	color:var(--subtext);
	}
	}
