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

body {
  background-color: #000; 
  color: white;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden; 
}

.taskbar {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 30px;
  box-shadow: none;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.8; 
  transform: translateX(-50%) translateY(-5px);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border 0.4s ease,
    box-shadow 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

  .taskbar.scrolled {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* back to normal position */
}

@media (max-width: 768px) {
  .taskbar {
    height: 40px;              /* gamay gyud ang height */
    padding: 0 8px;            /* gamay ra nga padding */
    border-radius: 20px;       /* rounded corners */
    transform: translateX(-50%) translateY(-1px);
    background: transparent;   /* optional, pwede nimo i-remove kung gusto nimo */
  }

  .taskbar svg {
    width: 18px;               /* gamay nga icons */
    height: 18px;
    margin: 0 4px;             /* mga icons magdikit pero dili mag-overlap */
  }

  .icon-link::after {
    font-size: 10px;
    padding: 3px 6px;
  }

  .taskbar-logo {
    display: none;              /* hide logo sa mobile */
  }
}

.taskbar-logo {
  height: 60px; /* Match or slightly bigger than icons */
  margin: 0 12px;
  border-radius: 8px; /* Optional: soft corners */
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Optional animation on hover */
.taskbar-logo:hover {
  transform: scale(1.2);
}

.taskbar svg {
  font-size: 20px; 
  margin: 0 5px;
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
  stroke: #fdfdfd;
  fill: none;
  transition: transform 0.2s;
}

.taskbar svg:hover {
  transform: scale(1.4) translateY(-10px);
}

/* Bounce animation on hover */
@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3) translateY(-8px); }
  60%  { transform: scale(1.1) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
  .taskbar svg:hover {
    transform: none;  /* Walay scale or translate */
  }
}

/* Tooltip container */
.icon-link {
  position: relative;
  display: inline-block;
}

/* Tooltip styling */
.icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 10;
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.icon-link:hover::after {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Toggle container style */
.toggle-container {
  position: absolute;
  top: 25px;
  right: 25px;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  width: 120px;
  z-index: 10;
}

/* Title text (Above the toggle switch) */
.toggle-container .title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

/* Toggle switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s ease;  /* Smooth background color transition */
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 5px;
  bottom: 5px;
  background-color: white;
  transition: 0.4s ease-in-out;  /* Smooth movement of the circle */
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #b30a0a;  /* Green when turned ON */
}

input:checked + .slider:before {
  transform: translateX(24px);  /* Move the circle to the right */
}

.ad-spot {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden; /* para mawala ang space kung empty */
}

/* Hide toggle on mobile */
@media (max-width: 767px) {
  .toggle-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .watchparty-icon {
    display: none;
  }
}

.ranking-stroke {
  font-size: 120px; /* dako gyud */
  font-weight: 900;
  color: black;
  -webkit-text-stroke: 3px #af1a1a; /* red border stroke */
  line-height: 1;
  position: absolute;
  bottom: 0;
  left: -50px; /* left offset para matabunan sa poster */
  z-index: 10; /* below poster */
  pointer-events: none;
  transition: transform 0.3s ease-in-out;
}

.group:hover .ranking-stroke {
  transform: scale(1.1);
}

.ranking-ten {
  left: -90px !important; /* Shift number 10 further left */
}

.custom-heading {
  font-weight: 900;
  text-transform: uppercase;
  user-select: none;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 1rem;
  font-family: 'Arial Black', Arial, sans-serif;
  color: white; /* fallback */
}

.top10 {
  font-size: 80px;
  font-weight: 900;
  color: transparent; /* no fill */
  -webkit-text-stroke: 4px #af1a1a; /* dark red stroke */
  position: relative;
  user-select: none;
}

.top10::before {
  content: 'TOP10';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-text-stroke: 4px rgba(139, 0, 0, 0.3); /* lighter dark red stroke for fade */
  color: transparent;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px); /* subtle blur for soft fade */
}

/* Stack CONTENT and TODAY vertically */
.content-today {
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

.content-today {
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
  margin-left: -15px; /* spacing between TOP10 and CONTENT TODAY */
  transform: translateY(50px); /* move content-today down by 6px */
}

.content {
  font-size: 20px; /* smaller font size */
  color: white;
  font-weight: 700;
  line-height: 1;
}

.today {
  font-size: 14px;
  color: white;
  font-weight: 500;
  margin-top: 0px;
  text-transform: uppercase;
}

.backdrop-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-wrapper {
  will-change: transform;
  transform: translateZ(0); /* triggers GPU acceleration */
}
