/* Підключення локального шрифту */
@font-face {
    font-family: 'MyCustomFont';
    src: url('fonts/Encore.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
/*Header*/
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    padding: 0;
}
header .logo {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}
header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    font-family: 'MyCustomFont';
}
header h2 {
    margin: 0;
    font-size: 0.9em;
    font-weight: normal;
    color: #f00;
    font-family: 'MyCustomFont';
}
header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
    text-transform: uppercase;
}
header nav a:hover {
     color: #aaa;
}
.header-line {
  height: 2px;
  background-color: white;
  width: 100%;
   position: fixed;
  top: 70px;/*розміщаємо лінію після хедера*/
   z-index: 999;
    
}
/*Hero*/
#hero {
    background-image:  url('images/encore_bg.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 50px 0;
    position: relative;
}
#hero .hero-content{
       position: relative;
       left: 50%;
       transform: translateX(-50%);
       width: 100%;
       background: rgba(0,0,0, 0.7);
       padding: 30px;
}

.album-cover-container {
  position: relative;
  width: 300px; /* Ширина обкладинки */
  height: 300px; /* Висота обкладинки */
  margin: 0 auto 10px auto;
    perspective: 1000px; /* Перспектива для 3D обертання */
    cursor: pointer;
}

.album-cover {
    width: 100%;
    height: 100%;
    border: 5px solid #f00;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    transition: transform 0.6s ease;
    position: absolute;
    backface-visibility: hidden; /* Приховує задню частину під час обертання */
     object-fit: cover;
     pointer-events: none;
}

.album-cover.back {
    transform: rotateY(180deg); /* Задня сторона повернута на 180 градусів */
}


.album-cover-container.rotated .front {
    transform: rotateY(180deg);
}

.album-cover-container.rotated .back {
    transform: rotateY(0deg);
}


#hero img:hover {
    transform: scale(1.05);
}
/*Section*/
section {
    padding: 50px 0;
}
section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
     color: #f00;
      text-transform: uppercase;
}
#about {
    text-align: center;
}
#about p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
     max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/*Download*/
#download .download-buttons {
   display: flex;
   justify-content: center;
   gap: 20px;
}
.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
     text-transform: uppercase;
     font-weight: bold;
}
.btn-download:hover {
    background-color: #bd070f;
}
.parental-advisory {
    text-align: center;
     margin-top: 30px;
}
.parental-advisory img {
   width: 150px;
   height: auto;
}
/*Tracklist Widget*/
#tracklist-widget{
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: #222;
    color: #fff;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 0px 5px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
     height: 60px;
}

#tracklist-widget.collapsed {
    width: 100px;
    height: 60px;
}
#tracklist-widget.collapsed .tracklist-content {
    display: none;
}
#tracklist-widget button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    position: relative;
}
#tracklist-widget button img {
   max-width: 60px;
    max-height: 60px;
    display: block;
    transform: translate(-50%, -50%) rotate(-90deg);
     position: absolute;
    top: 50%;
    left: 50%;
    object-fit: contain;
}
#tracklist-widget button .encore-text{
    display: none;
}

#tracklist-widget .tracklist-content {
    padding: 10px;
    overflow-y: auto;
    max-height: 400px;
     overflow-x: hidden;
}

#tracklist-widget ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
#tracklist-widget li{
    margin-bottom: 5px;
     font-size: 0.9em;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    padding: 3px;
    transition: background-color 0.3s ease;
    line-height: 1.2;
}
#tracklist-widget li:hover{
    background-color: #444;
}
.disc-title{
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1em;
    color: #f00;
     text-transform: uppercase;
}
/*Footer*/
footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}
footer p {
    margin: 0;
}
/*Media*/
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header .logo{
        margin: 0;
    }
    header nav {
        margin-top: 10px;
    }
    header nav a {
        margin: 0 10px;
        display: block;
        text-align: left;
    }
    #hero .hero-content{
        padding: 10px;
        transform: none;
        left: auto;
       
     }
    #hero {
        padding: 120px 0 30px 0;
    }
    #hero img {
          width: 250px;
    }
    .album-cover-container {
        height: 250px;
        margin: 0 auto 20px auto;
    }
    .parental-advisory img {
       width: 100px;
    }
    .container{
        width: 95%;
    }
    .header-line{
        top: 110px;
    }
    #tracklist-widget {
         top: auto;
        bottom: 0;
        left: 0;
        right: auto;
        transform: none;
        border-radius: 5px 5px 0 0;
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
        align-items: flex-start;
    }
   #tracklist-widget.collapsed{
         max-height: 40px;
        width: 100%;
    }
   #tracklist-widget button{
         transform: rotate(0);
    }
    #tracklist-widget button img {
          transform: rotate(0);
   }
   section h2{
    font-size: 2em;
  }
   #about p{
    font-size: 1em;
  }
   #download .download-buttons{
        flex-direction: column;
        align-items: center;
   }
}