.page_home {
 padding: 0 50px;
}

.carousel__wrapper {
  position: relative;
  margin-bottom: 24px;
}


.carousel__header {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 12px;
}

.carousel__headline {
  font-size: 1.25em;
  font-weight: 500;
  color: white;
  letter-spacing: 0.5px;
  margin: 0;
}

.carousel__controls {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
}

.carousel__arrow {
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel__arrow:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel__arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel__arrow:before {
  content: "";
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTUgOSI+Cgk8cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTcuODY3IDguNTc0bC03LjIyLTcuMjIuNzA3LS43MDhMNy44NjcgNy4xNiAxNC4wNS45OGwuNzA2LjcwNyIvPgo8L3N2Zz4K");
  background-size: contain;
  display: block;
  width: 15px;
  height: 9px;
}

.carousel__arrow.arrow-prev:before {
  transform: rotate(90deg);
}

.carousel__arrow.arrow-next:before {
  transform: rotate(-90deg);
}

/* Card Container */
.card-container {
  flex-shrink: 0;
}

.homeContent {
  overflow-y: hidden;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 10px 12px;
  margin: 0 -12px;
  gap: 12px;
}

.carousel__content::-webkit-scrollbar {
  display: none;
}

/* Visual Card Styles */
.visual-card {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.visual-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-background {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 20%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Text Content Styles */
.card-text-content {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
}

.visual-title {
  color: white;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

/* SVG Circle Wrapper */
.homeContent .svg-circle-wrapper {
  position: absolute;
  bottom: 8px;
  right: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.3);
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
  z-index: 4;
}

.homeContent .svg-circle-wrapper .svg-icon {
  fill: #fff;
  transition: transform 0.3s ease;
}


:root[style*="--device: desktop"] .visual-card:hover,
:root[style*="--device: desktop"] .visual-card:active,
:root[style*="--device: desktop"] .visual-card:focus {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

:root[style*="--device: desktop"] .visual-card:hover .visual-image,
:root[style*="--device: desktop"] .visual-card:active .visual-image,
:root[style*="--device: desktop"] .visual-card:focus .visual-image {
  transform: scale(1.05);
}

.visual-card:hover .svg-circle-wrapper,
.visual-card:active .svg-circle-wrapper,
.visual-card:focus .svg-circle-wrapper,
.visual-card.playing .svg-circle-wrapper {
  transform: translateY(0);
  opacity: 1;
  border-color: #ffffff;
}

:root[style*="--device: desktop"] .svg-circle-wrapper:hover {
  transform: scale(1.1) translateY(0) !important;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Playing State */
.visual-card.playing .visual-overlay {
  opacity: 1 !important;
}

.visual-card.playing .svg-circle-wrapper {
  transform: translateY(0) !important;
  border-color: #ffffff !important;
  opacity: 1;
}







@media (min-width: 768px) {
:root[style*="--device: desktop"] .carousel__wrapper:first-of-type > :first-child {
  margin-top: 50px;
}

  .carousel__headline {
    font-size: 1.5em;
  }
  
  .homeContent {
    gap: 16px;
    padding: 10px 16px;
    margin: 0 -16px;
  }
  
  .card-text-content {
    margin-top: 12px;
    min-height: 50px;
  }
  
  .visual-title {
    font-size: 0.95em;
    letter-spacing: 0.5px;
  }
  
  .visual-description {
    font-size: 0.8em;
    line-height: 1.4;
  }
  


}


      @media only screen and (orientation: landscape) {


        
        :root[style*="--device: mobile"] .carousel__headline {
          font-size: 1.1em;
          letter-spacing: 0.7px;
        }

        :root[style*="--device: mobile"] .visual-tag {
          font-size: 0.7em;
        }

               :root[style*="--device: mobile"] .page_home {
          padding: 30px;
        }



 
        :root[style*="--device: mobile"] .visual-title {
              font-size: 0.75em;
            }

        :root[style*="--device: mobile"] .visual-description {
              font-size: 0.7em;
            }

   
            


      }





.main-content,
#active-content,
#content-area {
  container-type: inline-size;
  container-name: music-container;
}


@container music-container (min-width: 0) {

.visual-card {
  width: clamp(140px, 15.5vw, 180px);
  height: clamp(150px, 17vw, 200px);
}

.card-container {
  width: clamp(140px, 15.5vw, 180px);
}


.homeContent .svg-circle-wrapper {
  width: clamp(2.8rem, 4.5vw, 3rem);
  height: clamp(2.8rem, 4.5vw, 3rem);
}

.homeContent .svg-circle-wrapper .svg-icon {
  width: clamp(0.1em, 3vw, 1.7rem);
  height: clamp(0.1rem, 3vw, 1.7rem);
}


}





