@keyframes albumDetailCombinedPop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(-5%);
  }
  60% {
    opacity: 1;
    transform: scale(1.2) translateY(-5%);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(-5%);
  }
}
#screen-album {
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
  background: #1a1a2e;
  overflow-y: auto;
  overflow-x: hidden;
}
.album-bg,
.album-deco-bottom {
  display: none;
}
.album-content {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background-image: url(../images/album/bg.webp);
  background-size: cover;
  background-attachment: local;
  background-position: center 40px;
  background-repeat: no-repeat;
}
.album-card-portrait img.portrait-bg,
.album-zhuangshi {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.album-zhuangshi {
  bottom: 30px;
  display: block;
  z-index: 10;
}
.album-header {
  position: relative;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
#btn-album-back {
  position: absolute;
  top: 0;
  left: 0;
  background: 0 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
#btn-album-back img,
.album-title-img {
  width: 205px;
  height: auto;
  display: block;
}
.album-title-img {
  width: 56%;
  max-width: 238px;
  margin: 80px auto 0;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 10px;
  padding: 8px 10px 16px;
  margin-top: 0;
  flex-shrink: 0;
  align-items: start;
  position: relative;
  z-index: 1;
}
.album-card {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.album-card-portrait {
  position: relative;
  width: 100%;
  overflow: hidden;
  transform-origin: bottom center;
  transform: translateY(-2px) scale(0.95);
}
.album-card-portrait img.portrait-bg {
  top: -5px;
  z-index: 0;
}
.album-card-portrait img.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.album-card-name {
  position: relative;
  width: 100%;
  margin-top: -2px;
  z-index: 2;
}
.album-card-name .juesemin-bg {
  display: block;
  width: 100%;
  height: auto;
}
.album-card-name .name-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  max-height: 65%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
#album-detail.hidden,
.album-card-portrait img.mask-img,
.album-detail-footer,
.album-detail-header,
.album-footer {
  display: none;
}
#album-detail,
.album-detail-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
#album-detail {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 600;
  cursor: pointer;
}
.album-detail-body {
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}
.album-detail-body img.detail-illust {
  width: 100%;
  height: 98%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: top center;
}
#detail-illust-img {
  transform-origin: top center;
  transform: scale(1.25) translateY(-5%);
}
.album-detail-name {
  display: none;
}
#screen-album.screen-intro-playing #btn-album-back,
#screen-album.screen-intro-playing .album-grid,
#screen-album.screen-intro-playing .album-title-img {
  animation: slideInFromLeftSoft var(--screen-intro-duration) linear both;
}
#screen-album.screen-intro-playing .album-grid {
  animation-delay: 0.04s;
}
#album-detail.detail-intro-playing {
  animation: fadeInOverlaySoft 0.2s ease-out both;
}
#album-detail.detail-intro-playing #detail-illust-img {
  animation: albumDetailCombinedPop 0.4s ease-out both;
}
