@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

.poppins-regular {
  font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: auto;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #fffff0;
  background-color: #1c1c1c;
  width: 100%;
  overflow-x: auto;
}

.btn {
  background: transparent;
  color: #fffff0;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  border: 1px solid #fffff0;
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  text-transform: uppercase;
  font-weight: 700;
}

.btn:hover {
  opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: #fffff0;
}

img {
  width: 100%;
}

a {
  text-decoration: none;
  color: #fffff0;
}

li {
  list-style: none;
}

.video-section,
.gallery,
.discography {
  background-color: #1c1c1c;
}

.gallery h2,
.video-section h2,
.discography h2,
.events-tour h2,
.store h2 {
  font-size: 2.5rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 40px;
}

section {
  padding: 2.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

section::before {
  content: "";
  display: block;
  width: 90%;
  height: 1px;
  margin: 0 auto 40px;
  background-color: rgba(255, 255, 255, 0.1);
}

.container {
  width: 90%;
  margin: auto;
}

.showcase {
  position: relative;
  background: url(./Img/4817.jpg) no-repeat center top / cover;
  width: 95%;
  margin: 0 auto 2.5rem;
  height: 500px;
  border-radius: 1.25rem;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.6);
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffff0;
  padding: 0 1.25rem;
}

header a:hover {
  opacity: 0.9;
}

.logo {
  width: 5.625rem;
}

.latest-music {
  margin: 5% 0 0 5%;
  max-width: 25rem;
}

.showcase-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.music-player {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 0.9375rem;
}

.cover img {
  width: 6.25rem;
  height: 6.25rem;
  object-fit: cover;
  border-radius: 12px;
}

.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.song-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.artist-name {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.9375rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 10px;
  border-radius: 50%;
  color: #fffff0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.progress-container {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress {
  width: 30%;
  height: 100%;
  background: #fffff0;
  position: absolute;
  top: 0;
  left: 0;
}

.duration {
  font-size: 0.8rem;
  min-width: 5rem;
  text-align: right;
  opacity: 0.8;
}

/* VIDEO */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-container {
  width: 43.75rem;
  max-width: 50rem;
  height: auto;
  margin: auto;
}

.responsive-video {
  width: 100%;
  height: auto;
  display: block;
}

.video-section a {
  margin-top: 2.5rem;
}

/* DISCOGRAPHY */
.discography-container {
  display: flex;
  width: 90%;
  margin: auto;
  max-width: 75rem;
  background: transparent;
  gap: 5rem;
  box-sizing: border-box;
}

.album {
  background: #a60c1c;
  color: #fffff0;
  padding: 1.5rem;
  border-radius: 10px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.album:hover {
  box-shadow: 0 0 30px rgba(255, 192, 203, 0.8);
}

.album-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.album-cover {
  width: 6.25rem;
  height: 6.25rem;
  background: url(./Img/LOUIS\ TOMLINSON.jpg) no-repeat center center / cover;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.album:hover .album-cover {
  transform: scale(1.05);
}

.album-info {
  display: flex;
  flex-direction: column;
}

.album-info h3,
.album-info p {
  margin: 0;
}

.tracklist {
  max-height: 12.5rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #fffff0 transparent;
}

.tracklist::-webkit-scrollbar {
  width: 6px;
}

.tracklist::-webkit-scrollbar-thumb {
  background-color: #fffff0;
  border-radius: 3px;
}

.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.track:hover {
  background-color: #111;
}

.track.active {
  background-color: #111;
  font-weight: bold;
}

.track i {
  cursor: pointer;
}

.track-play-btn {
  background: none !important;
  border: none;
  outline: none;
  color: #fffff0;
}

.player {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  gap: 0.75rem;
}

.player button {
  background: none;
  border: none;
  color: #fffff0;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0.8;
}

.player button:hover {
  opacity: 1;
}

#play-pause-btn {
  font-size: 1.5rem;
  opacity: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#play-pause-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#track-duration {
  font-size: 0.9rem;
  min-width: 5rem;
  user-select: none;
}

.seek-bar {
  background: #333;
  border-radius: 3px;
  cursor: pointer;
  height: 0.375rem;
  width: 100%;
  max-width: 18.75rem;
}

.seek-progress {
  background-color: #fffff0;
  border-radius: 3px;
  height: 100%;
  width: 0;
  transition: width 0.1s linear;
}

.volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.volume span {
  font-size: 1.1rem;
  color: #fffff0;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 3.125rem;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #fffff0 100%, #333 0%);
  cursor: pointer;
  transition: background 0.3s ease;
}

#volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: transparent; /* will be overridden inline */
}

#volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#volume-slider:hover::-webkit-slider-thumb {
  width: 0.9375rem;
  height: 0.9375rem;
  opacity: 1;
  pointer-events: auto;
  background: #fffff0;
  border-radius: 50%;
  border: none;
  margin-top: -5px;
  box-shadow: 0 0 5px #f8cddaaa;
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#volume-slider:hover::-moz-range-thumb {
  width: 0.9375rem;
  height: 0.9375rem;
  opacity: 1;
  pointer-events: auto;
  background: #fffff0;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 5px #f8cddaaa;
  cursor: pointer;
}

.discography-showcase {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 1rem;
}

.discography-showcase h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.discography-showcase p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.discography-showcase a {
  width: fit-content;
}

.discography-showcase button {
  padding: 0.75rem 1.5rem;
  border: 2px solid #fffff0;
  background: transparent;
  color: #fffff0;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  align-self: flex-start;
  border-radius: 5px;
}

.discography-showcase button:hover {
  background: #fffff0;
  color: #fffff0;
}

/* GALLERY */
.gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.slider-container {
  position: relative;
  width: 37.5rem;
  max-width: 80%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8125rem;
  height: 2.8125rem;
  background-color: rgba(255, 255, 255, 0.6);
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

.button:hover {
  background-color: #fffff0;
}

.button-prev {
  left: 15px;
}

.button-next {
  right: 15px;
}

.dots-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* COUNTDOWN */
.events-tour {
  text-align: center;
}

.events-tour .container {
  background: url(./Img/countdown-img.jpg) no-repeat center center / cover;
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-tour .container-inner {
  z-index: 1;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 2.2rem;
  font-weight: bold;
  flex-wrap: wrap;
}

.countdown div {
  background: #222;
  padding: 1.25rem;
  border-radius: 10px;
  min-width: 80px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.tour-message {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #ccc;
}

/* STORE */
.store .container {
  padding: 0 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.store-grid img {
  width: 18.75rem;
}

.store-grid .merch {
  font-size: 13px;
  font-weight: bold;
}

.store-grid .price {
  font-size: 14px;
}

/* LINKS & FOOTER */
section.links-footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

.links-footer-inner {
  background: url(./Img/footer-img.jpg) no-repeat center 10% / cover;
  border-radius: 20px;
  width: 95%;
  margin: auto;
  position: relative;
  height: 500px;
}

.links-footer-container {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 0 1.875rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
  position: absolute;
  bottom: 20px;
  width: 95%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
}

.links img {
  width: 8.75rem;
}

.links {
  display: flex;
  justify-content: space-between;
  width: 95%;
  margin: auto;
  padding: 1.875rem 0;
}

.links li {
  line-height: 2;
}

.links li h4 {
  text-transform: uppercase;
  font-weight: 700;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: auto;
}

.footer::before {
  content: "";
  display: block;
  width: 95%;
  height: 1px;
  margin: 0 auto 30px;
  background-color: rgba(255, 255, 255, 0.4);
}

.footer > div p:first-child {
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: 10px;
  margin-right: 10px;
}

.footer p {
  display: inline;
}

.social-icons ul {
  display: flex;
}

.social-icons i {
  font-size: 17px;
}

.social-icons li {
  margin-right: 20px;
}

.social-icons li:last-child {
  margin-right: 0;
}

/* Medium screens: Tablets and small desktops */
@media (min-width: 768px) and (max-width: 1024px) {
  .video-container {
    width: 90%;
  }

  .discography-container {
    flex-direction: column;
    gap: 2rem;
  }

  .album,
  .discography-showcase {
    width: 100%;
  }

  .track-play-btn {
    font-size: 1rem;
  }

  .slider-container {
    max-width: 90%;
  }

  .logo {
    width: 60px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .left-nav ul,
  .right-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .showcase {
    height: 400px;
    background-position: center center;
  }

  .latest-music {
    margin: 3% 0 0 3%;
    max-width: 90%;
  }

  .countdown {
    gap: 1rem;
    font-size: 2rem;
  }

  .countdown div {
    padding: 1.125rem;
    min-width: 70px;
  }

  .tour-message {
    font-size: 1.1rem;
    margin-top: 1.8rem;
  }

  .store .container {
    padding: 0;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    margin: auto;
  }

  .gallery h2,
  .video-section h2,
  .discography h2,
  .events-tour h2,
  .store h2 {
    font-size: 2rem;
  }

  section::before {
    width: 100%;
  }

  .showcase {
    width: 100%;
    background: url(./Img/42.jpg) no-repeat center center / cover;
    height: 37.5rem;
  }

  .logo {
    width: 70px;
  }

  .latest-music {
    position: absolute;
    width: 90%;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    max-width: 25rem;
  }

  .showcase-text {
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: center;
  }

  .music-player {
    padding: 1.25rem;
    display: flex;
    gap: 0.9375rem;
  }

  .track-play-btn {
    font-size: 1rem;
  }

  .cover img {
    width: 6.25rem;
    height: 6.25rem;
    object-fit: cover;
  }

  .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .song-title {
    margin-bottom: 5px;
  }

  .artist-name {
    opacity: 0.85;
    margin-bottom: 0.9375rem;
  }

  .controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .action-btn {
    padding: 10px;
    border-radius: 50%;
  }

  .progress-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
  }

  .progress {
    width: 30%;
    height: 100%;
    background: #fffff0;
    position: absolute;
    top: 0;
    left: 0;
  }

  .video-container,
  .discography-container,
  .slider-container {
    width: 100%;
    max-width: 100%;
  }

  .video-container {
    width: 100%;
    padding: 0 1rem;
  }

  .discography-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .album,
  .discography-showcase {
    width: 100%;
    padding: 1rem;
  }

  .slider-container {
    aspect-ratio: 4 / 3;
  }

  .button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 1.25rem;
    font-size: 1.4rem;
  }

  .countdown div {
    padding: 10px;
    min-width: 0;
  }

  .tour-message {
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  .store-grid img {
    font-size: 12.5rem;
  }

  section.links-footer {
    padding: 0;
  }

  .links-footer-inner {
    width: 100%;
    height: 37.5rem;
  }

  .links-footer-container {
    display: block;
    position: absolute;
    bottom: 0;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
  }

  .links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .links img {
    width: 7.5rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    aspect-ratio: 1 / 1;
  }

  .button {
    width: 2.18rem;
    height: 2.18rem;
    font-size: 14px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }
}
