* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f8fc;
  overflow-x: hidden;
  color: #111;
}

/* SCROLLBAR */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 20px;
}

/* HEADER */

header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 80px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  z-index: 9999;
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, .08); */
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 25px;
}

.logo h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ff0000;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: red;
  border-radius: 20px;
  transition: 0.4s;
}

nav a:hover:after {
  width: 100%;
}

.right-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  width: 280px;
  height: 50px;
  background: #f3f3f3;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.search-box i {
  color: #888;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  margin-left: 10px;
}

.cart {
  position: relative;
  font-size: 22px;
  cursor: pointer;
}

.cart span {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: red;
  color: white;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-btn {
  text-decoration: none;
  border: none;
  background: linear-gradient(90deg, #ff0000, #ff4444);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
  transition: 0.3s;
}

.login-btn:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
}

.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-left: 10%;
  color: white;
  transition: 1s;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to right,
                rgba(0, 0, 0, .85),
                rgba(0, 0, 0, .3)); */
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.slide-content h1 {
  font-size: 90px;
  line-height: 95px;
  font-weight: 800;
  margin-bottom: 25px;
}

.slide-content h1 span {
  color: #ff2b2b;
}

.slide-content p {
  font-size: 18px;
  line-height: 34px;
  color: #ddd;
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 70px;
}

.listen-btn {
  background: linear-gradient(90deg, #ff0000, #ff4a4a);
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

.discover-btn {
  background: white;
  color: #111;
  border: none;
  padding: 20px 40px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.stats {
  display: flex;
  gap: 80px;
}

.stat h2 {
  font-size: 45px;
  color: #ff2b2b;
}

.stat p {
  font-size: 15px;
  color: #ccc;
}

.slide1 {
  background-image: url("../img/bg3.jpg");
}

.slide2 {
  background-image: url("../img/bg4.jpg");
  opacity: 0;
}

.slide3 {
  background-image: url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?w=1600");
  opacity: 0;
}

/* HERO INDICATORS */

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

.dot {
  width: 15px;
  height: 15px;
  background: white;
  opacity: 0.4;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: #ff0000;
}

/* MOBILE */

@media (max-width: 1100px) {
  nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .slide-content h1 {
    font-size: 60px;
    line-height: 70px;
  }

  .stats {
    gap: 30px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  .login-btn {
    display: none;
  }

  .slide {
    padding: 0 30px;
    text-align: center;
    justify-content: center;
  }

  .slide-content h1 {
    font-size: 45px;
    line-height: 55px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stats {
    justify-content: center;
  }
}

.section {
  padding: 100px 8%;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.title-row h2 {
  font-size: 45px;
  font-weight: 800;
}

.title-row a {
  color: red;
  text-decoration: none;
  font-weight: 600;
}

/* CAROUSEL */

.carousel {
  display: flex;
  align-items: center;
  gap: 25px;
}

.arrow {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.music-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  flex: 1;
}

.music-card {
  background: white;
  padding: 18px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
  cursor: pointer;
}

.music-card:hover {
  transform: translateY(-10px);
}

.cover {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
}

.cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 45px;
  color: white;
  opacity: 0;
  transition: 0.4s;
}

.cover:hover .play-overlay {
  opacity: 1;
}

.music-info {
  padding-top: 15px;
}

.music-info h3 {
  margin-bottom: 5px;
}

/* ALBUMS */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.album {
  overflow: hidden;
  border-radius: 30px;
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.album:hover {
  transform: translateY(-10px);
}

.album img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.album-content {
  padding: 20px;
}

.album-content span {
  color: red;
  font-size: 14px;
}

.album-content h3 {
  margin: 10px 0;
}

/* ARTISTES */

.artists {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 35px;
}

.artist {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.artist:hover {
  transform: translateY(-10px);
}

.artist img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.artist h3 {
  margin-top: 20px;
}

.artist p {
  color: #777;
  margin-top: 10px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .music-slider {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .title-row h2 {
    font-size: 32px;
  }

  .music-slider,
  .albums-grid,
  .artists {
    grid-template-columns: 1fr;
  }
}

/* CATEGORIES */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.category-card {
  padding: 50px;
  border-radius: 35px;
  color: white;
  cursor: pointer;
  transition: 0.4s;
}

.category-card:hover {
  transform: translateY(-10px);
}

.afro {
  background: linear-gradient(135deg, #ff0000, #ff5555);
}

.rap {
  background: linear-gradient(135deg, #1b1b1b, #444);
}

.gospel {
  background: linear-gradient(135deg, #ff7300, #ffb347);
}

.zouk {
  background: linear-gradient(135deg, #ff006e, #ff4da6);
}

/* NEWS */

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

.news-card {
  background: white;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-content span {
  color: red;
  font-size: 14px;
}

.news-content h3 {
  margin: 15px 0;
}

/* STATS */

.stats-banner {
  margin: 100px 8%;
  background: linear-gradient(135deg, #ff0000, #ff4444);
  padding: 60px;
  border-radius: 40px;
  display: flex;
  justify-content: space-around;
  color: white;
  text-align: center;
}

.stats-banner h2 {
  font-size: 50px;
}

/* PREMIUM */

.premium-box {
  background: #111;
  border-radius: 40px;
  padding: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  overflow: hidden;
}

.premium-left {
  max-width: 600px;
}

.premium-left span {
  color: #ff4444;
  font-weight: 700;
}

.premium-left h2 {
  font-size: 55px;
  margin: 20px 0;
}

.premium-left p {
  line-height: 35px;
  color: #ddd;
}

.premium-left ul {
  margin-top: 30px;
  list-style: none;
  line-height: 40px;
}

.premium-left button {
  margin-top: 40px;
  padding: 20px 40px;
  border: none;
  background: red;
  color: white;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.premium-right {
  font-size: 250px;
  color: #ff2222;
  opacity: 0.15;
}

/* MINI PLAYER */

.mini-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  padding: 20px 30px;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  z-index: 999;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-left img {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  object-fit: cover;
}

.player-center {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 25px;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: red;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-right {
  font-size: 22px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .categories-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-banner {
    flex-wrap: wrap;
    gap: 40px;
  }

  .premium-box {
    flex-direction: column;
    text-align: center;
  }

  .premium-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .categories-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .mini-player {
    display: none;
  }

  .stats-banner h2 {
    font-size: 35px;
  }

  .premium-left h2 {
    font-size: 35px;
  }
}
