
.modern-grid-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
  background-color: #000;
  width: 100%;
  box-sizing: border-box;
}

.grid-item {
  text-align: center;
  background-color: #111;
  border-radius: 16px;
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: white;
  position: relative;
  transition: all 0.2s ease;
}

.grid-item:hover {
  background-color: #1a1a1a;
  transform: scale(1.03);
}

.grid-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.6rem;
  border-radius: 12px;
  background-color: #0b8557;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-icon i {
  font-size: 18px;
  color: white;
}

.grid-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new {
  position: absolute;
  top: -6px;
  left: 10px;
  background-color: #f57c00;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}


<!-- 🎨 SLIDER OF HAFRIKPLAY -->
<style>
.slider-wrapper {
  width: 100vw;
  overflow: hidden;
  background-color: #000;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100vw;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
</style>

<!-- 🎨 MOST Played HAFRIKPLAY -->
<style>
.see-all-wrapper {
  text-align: right;
  padding: 0 1rem 1rem;
  margin-top: -0.5rem;
}

.see-all-btn {
  color: #0b8557;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.see-all-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}


.featured-header {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.2rem 0 1rem 0.5rem;
}

.featured-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-card {
  width: 300px;
  height: 220px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
  overflow: hidden;
  animation: bounce 3s ease-in-out infinite;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.0));
  color: white;
  width: 100%;
  z-index: 1;
}

.featured-label {
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #f57c00;
  margin-bottom: 5px;
}

.featured-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3em;
}

/* Play button on top-right */
.play-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}


</style>



<!-- 🎨 ARTIST List HAFRIKPLAY -->
<style>
.music-player {
  display: block !important;
  opacity: 1 !important;
  bottom: 0;
}
.artist-carousel-section {
  background: #000;
 
  margin-top: 1rem;
  margin: 1.2rem 0 1rem 0.5rem;
}
.carousel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.carousel-header {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.view-all-btn {
  font-size: 0.8rem;
  color: #0b8557;
  text-decoration: none;
}
.artist-carousel-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.artist-carousel-scroll::-webkit-scrollbar {
  display: none;
}
.artist-card {
  background: #111;
  border-radius: 10px;
  padding: 0.7rem;
  min-width: 140px;
  text-align: center;
  scroll-snap-align: start;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}
.artist-card:hover {
  transform: translateY(-4px);
}
.artist-img-wrapper {
  width: 100px;
  height: 100px;
  margin: auto;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #0b8557;
}
.artist-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>

<!-- 🎨 LATEST UPLOAD OF HAFRIKPLAY -->
<style>
.latest-carousel-section {
  background: #000;
  padding: 1rem 0.5rem;
  margin-top: 1.5rem;
}

.latest-carousel-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.latest-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.latest-carousel-card {
  background: #111;
  border-radius: 10px;
  min-width: 140px;
  text-align: center;
  scroll-snap-align: start;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}
.latest-carousel-card:hover {
  transform: scale(1.03);
}

.latest-card-img {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
}
.latest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 6px;
  color: #0b8557;
}
.latest-card-info {
  margin-top: 0.5rem;
}
.latest-song-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-artist-name {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

</style>

<!-- 🎨 TOP MUSIC HAFRIKPLAY -->
<style>
.topchart-list-section {
  padding: 1rem;
  background: #000;
}

.carousel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.carousel-header {
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.view-all-btn {
  font-size: 0.8rem;
  color: #0b8557;
  text-decoration: none;
}


<!-- 🎨 TOPMUSIC OF HAFRIKPLAY -->
<style>
.topchart-list-section {
  padding: 1rem;
  background: #000;
  margin-bottom: 2rem; 
}

.topchart-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.topchart-item {
  display: flex;
  align-items: center;
  background-color: #111;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
  width: 100%;
  
}

.topchart-item:hover {
  transform: scale(1.01);
}

.topchart-rank {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 1rem;
  color: #0b8557;
  width: 26px;
  text-align: center;
}

.topchart-thumbnail img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 1rem;
}

.topchart-info {
  flex: 1;
}

.topchart-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topchart-meta {
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 4px;
}

.topchart-play {
  margin-left: 1rem;
  font-size: 1.2rem;
  color: #0b8557;
}

.fire {
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .topchart-item {
    padding: 0.8rem;
  }

  .topchart-title {
    font-size: 0.85rem;
  }

  .topchart-meta {
    font-size: 0.7rem;
  }

  .topchart-thumbnail img {
    width: 45px;
    height: 45px;
  }

  .topchart-rank {
    font-size: 1rem;
  }
}
</style>


<!-- 🎨 GENRE OF HAFRIKPLAY -->
<style>
.playlist-section {
  background: #000;
  padding: 1rem;
  margin-top: 3rem; 
}

.playlist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.playlist-header {
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

.view-all-btn {
  font-size: 0.8rem;
  color: #0b8557;
  text-decoration: none;
}

.playlist-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.playlist-scroll::-webkit-scrollbar {
  display: none;
}

.playlist-card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.playlist-card:hover {
  transform: scale(1.05);
}

.playlist-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.playlist-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.song-count {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0b8557;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 8px;
}

.playlist-title {
  font-size: 0.85rem;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
</style>




.hafrik-likes-section {
  background: #000;
  padding: 1rem 1rem 2rem;
  margin-top: 2rem;
}

.likes-carousel-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
}
.likes-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.likes-card {
  background: #fff;
  border-radius: 12px;
  width: 180px;
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px; 
}

.likes-thumb {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.likes-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.likes-play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px;
  border-radius: 50%;
  font-size: 12px;
}

.likes-details {
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  flex: 1;
}

.likes-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.likes-artist {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 4px;
}

.likes-count {
  font-size: 0.75rem;
  color: #0b8557;
}

<style>
.playlist-section {
  background: #000;
  padding: 1rem;
}
.playlist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.playlist-header {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}
.view-all-btn {
  font-size: 0.9rem;
  color: #0b8557;
  text-decoration: none;
}
.playlist-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.playlist-scroll::-webkit-scrollbar {
  display: none;
}
.playlist-card {
  flex: 0 0 auto;
  width: 180px;
  color: white;
  text-decoration: none;
  scroll-snap-align: start;
}
.playlist-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
}
.playlist-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 6px;
}
.play-icon i {
  color: white;
  font-size: 14px;
}
.song-count {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 6px;
}
.playlist-title {
  margin-top: 8px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 400;
}
</style>
  
<!--GENRE CSS -->
<style>
  .genre-tall-section {
    padding: 1rem;
    background: #000;
  }

  .carousel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .carousel-header {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .view-all-btn {
    font-size: 0.85rem;
    color: #0b8557;
    text-decoration: none;
  }

  .genre-tall-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
  }

  .genre-tall-scroll::-webkit-scrollbar {
    display: none;
  }

  .genre-tall-card {
    flex: 0 0 auto;
    width: 300px;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    background: #111;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
  }

  .genre-tall-card:hover {
    transform: translateY(-4px);
  }

  .genre-tall-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .genre-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    z-index: 1;
  }

  .genre-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
  }
</style>
  
  <!--bLOG CSS -->
<style>
.carousel-blog-section {
  background: #000;
  padding: 1.2rem 1rem;
}

.carousel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.carousel-header {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.view-all-btn {
  font-size: 0.8rem;
  color: #0b8557;
  text-decoration: none;
}

.carousel-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.blog-card {
  min-width: 280px;
  max-width: 300px;
  scroll-snap-align: start;
  background-color: #fff;
  color: #222;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.blog-img-wrapper {
  width: 100%;
  height: 160px;
  background: #eee;
  overflow: hidden;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  padding: 12px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}
</style>

<style>
.activity-carousel-section {
  background: #000;
  padding: 1rem;
}

.activity-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.activity-carousel::-webkit-scrollbar {
  display: none;
}

.activity-slide {
  background: #111; /* dark gray */
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  border: 1px solid #222;
}
</style>

<style>
.album-carousel-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1rem 1rem;
}
.album-carousel-scroll::-webkit-scrollbar {
  display: none;
}
.album-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  color: #000;
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-card:hover {
  transform: scale(1.03);
}

.album-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.album-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  padding: 8px;
  font-size: 12px;
}

.album-meta {
  text-align: center;
  padding: 10px;
  background: white;
  width: 100%;
}

.album-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
}

.album-artist {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
}

.album-count {
  font-size: 0.75rem;
  color: #0b8557;
  font-weight: bold;
}
</style>