/* GLOBAL */
body, html {
  overflow-x: hidden; /* prevent page horizontal scroll */
}


/* ===== TOP 10 TODAY ===== */
.top-ten-section {
  padding: 60px 0;
}

.top-ten-section h2 {
  font-size: 4em;
  margin-bottom: 20px;
  color: #fff;
}

.muted-label {
  font-weight: normal;
  color: #555;
  font-size: 18px;
  margin-left: 8px;
}

.top-ten-card .thumb {
  position: relative; /* positioning context for icon */
}

.top-ten-card .platform-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  pointer-events: none; /* don't block clicks */
  border-radius: 50%;   /* circular background */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000; /* default black for TikTok */
  z-index: 2;
}

.top-ten-card .platform-icon.instagram {
  background-color: #E1306C; /* Instagram pink */
}

.top-ten-card .platform-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* white icon on colored bg */
}

/* Swiper wrapper */
.top-ten-swiper {
  overflow: visible;
  position: relative;
}

.top-ten-swiper .swiper-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-left: 80px;  /* 👈 Add this */
  padding-right: 80px; /* Ensures space for final slide */
  max-width: 1400px;
  margin: 0 auto;
}

.top-ten-card {
  position: relative;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

/* Rank number behind the thumbnail */
.top-ten-card .rank {
  position: absolute;
  bottom: 0;
  left: -36px; /* 👈 peek out just a bit */
  font-size: 100px;
  font-weight: bold;
  color: #fff;
  opacity: 0.45;
  z-index: 0; /* ✅ behind the thumb */
  line-height: 1;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Thumbnail on top, centered */
.top-ten-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Maintain 3:4 ratio */
  background: #666;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effects */
.top-ten-card:hover .thumb {
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-ten-card:hover .rank {
  transform: translateX(-6px);
  opacity: .75;
}

.swiper-spacer {
  width: 240px;
  flex-shrink: 0;
  pointer-events: none;
}



/* ===== TOP ALL-TIME ===== */
.top-content-section {
	padding-bottom: 60px;
}

.top-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.content-card {
  background: #999;
  height: 260px;
  border-radius: 6px;
  position: relative;
}

.creator {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}

.view-more-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: underline;
}

/* ===== HERO SWIPER ===== */
.hero-carousel {
  position: relative;
  padding: 60px 0;
  background: #2e2e2e;
  overflow: visible;
}

.hero-swiper {
  margin: 0 auto !important;
  max-width: 100vw !important;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  padding: 0;  /* Important: no padding */
}

.hero-swiper .swiper-slide {
  width: 75vw;          /* Responsive width */
  max-width: 960px;     /* Max width */
  height: 600px;
  flex-shrink: 0;
  box-sizing: border-box;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero-swiper .swiper-slide {
  width: 100%;
  max-width: 960px;
  height: 600px;
  flex-shrink: 0;
  box-sizing: border-box;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero-swiper .swiper-slide-active {
  opacity: 1;
}

/* Slide layout container */
.slide-frame {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Rounded container for bg and content */
.slide-content-clip {
  position: relative; /* enable absolute children positioning */
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  height: 100%;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  
}

/* Background image */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Title floats outside content block */
.slide-title-wrapper {
  position: absolute;
  top: 100px; /* increase from 60px to 100px or adjust as needed */
  left: 40px;
  z-index: 3;
  pointer-events: auto;
  max-width: 50%;
}

/* Title animation */
.slide-title {
  font-size: 4.5em;
  font-weight: bold;
  line-height: .95;
  margin-bottom: 20px;
  margin-left: -80px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.hero-swiper .swiper-slide-active .slide-title {
  animation: slideFadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-link {
  font-size: 1.3em;
  font-weight: 600;
  color: #fff;
  background: #9501ff;
  padding: 10px 16px;
  border-radius: 11px;
  display: inline-block;
  margin-bottom: 20px;
  margin-left: -80px;
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  will-change: transform;
  text-decoration: none;
}

.slide-link:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* Inner content */
.slide-inner {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 60px 40px 30px;
}

.slide-top {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none; /* optional: allows clicks to pass through */
  z-index: 10;
}

/* This will push the bottom box to the bottom of the slide */
.slide-bottom {
  display: flex;
  gap: 20px;
  background: #686868;
background: linear-gradient(130deg,rgba(104, 104, 104, 1) 0%, rgba(78, 78, 78, 1) 50%, rgba(72, 72, 72, 1) 100%);
  color: black;
  padding: 20px 30px;
  border-radius: 8px;
  margin-top: auto; /* ✅ PUSH TO BOTTOM */
}

@media screen and (max-width: 767px) {
  .slide-inner {
    position: relative; /* Add this if not already present */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push children to bottom */
    height: 100%; /* full height so justify-content works */
    padding: 20px;
  }

  .slide-bottom {
    margin-top: 0; /* remove the margin pushing it down */
  }
}

.slide-bottom .left {
  flex: 1;
}

.slide-bottom .right {
  flex: 2;
  font-size: 15px;
  line-height: 1.4;
}

.slide-dates {
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
}

.slide-hashtag {
  font-weight: bold;
  font-size: 20px;
  margin: 4px 0 8px;
  color: #fff;
}

.slide-desc {
  color: #fff;
}

.platform-icons img {
  height: 22px;
  margin-right: 8px;
}

/* Swiper nav buttons */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}

/* hero for mobile */
@media screen and (max-width: 767px) {
  .hero-carousel {
    padding: 30px 0;
  }
  
  .hero-swiper {
  	padding: 0 4.5vw;
  }

  .slide-frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .slide-title-wrapper {
    position: absolute;
    top: 40px;
    left: 80px;
    z-index: 3;
    pointer-events: auto;
    padding: 20px;
    text-align: left;
	max-width: 50%;
  }

  .slide-title {
    font-size: 3em;
    margin-bottom: 8px;
    line-height: 0.9;
  }

  .slide-link {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    /* text-decoration: underline; */
   /*  color: #000; */
  }

  .slide-content-clip {
    border-radius: 0;
    overflow: visible;
    margin-top: -10px; /* adjust if spacing is tight */
  }

  .slide-inner {
    padding: 20px;
  }

  .slide-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .slide-bottom {
    flex-direction: column;
    gap: 20px;
    margin-top: 120px;
  }

  .slide-bottom .left,
  .slide-bottom .right {
    width: 100%;
    font-size: 14px;
  }

  .platform-icons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    top: auto;
    bottom: 300px;
  }
  
  .platform-icons .pill {
    font-size: 10px;
    gap: 0px;
	}

}

/* view all button */
.btn-view-all {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000; /* example: black */
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-view-all:hover {
  background-color: #888;
}

/* competition grid */
.latest-competitions .competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.latest-competitions h2 {
  color: #fff;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #111;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  gap: 20px;
  flex-wrap: wrap;
  display: flex;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cookie-message {
  flex: 1;
  font-size: 16px;
}

.cookie-message a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-btn.outline {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

@media (max-width: 600px) {
  .cookie-banner {
    max-height: 180px;      /* limit height on mobile */
    overflow-y: auto;       /* allow vertical scroll if content overflows */
    padding: 15px;
    z-index: 10000; /* higher than mobile footer */
    padding-bottom: 80px; /* height + some spacing */
  }

  .cookie-message {
    flex: 1 1 60%;          /* allow it to shrink */
    max-height: 5em;        /* limit text block height */
    overflow-y: auto;       /* scroll if text too long */
    font-size: 14px;
    padding-right: 10px;
  }

  .cookie-buttons {
    flex: 1 1 35%;          /* allow it to grow/shrink */
    min-width: 200px;       /* ensure enough room for buttons */
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookie-btn {
    flex: 1 1 auto;         /* allow buttons to wrap and shrink */
    min-width: 60px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

.slide-artist-name {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 0.25em;
}

