/* ==========================
   🌟 HEADER SECTION
   ========================== */
   #header {
    position: relative;
    background: url("/images/SOG1.png") center/cover no-repeat;
    height: 100vh; /* Full-screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Apply IBM Plex Serif for header text */
#header h1 {
    font-family: 'IBM Plex Serif', serif;
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    transition: font-size 0.3s ease-in-out;
}

/* Style for all <span> elements */
span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    display: inline-block;
    margin: 5px 0;
}

/* Specific style for rank spans (optional improvement) */
.rank {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    width: 24px;
    height: 24px;
    color: white;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    font-weight: bold;
}

/* Style for <a> elements with class "pagination-btn" */
a.pagination-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Style for the pagination container */
.pagination {
    position: relative;
    top: 0px;  
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for the pagination links */
.page-link {
    font-family: 'Montserrat', sans-serif;
    margin: 0 10px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Style for the Previous and Next buttons as circles */
.pagination-btn {
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d56e6e;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    margin: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Title Styling */
#header h1 {
    font-family: 'IBM Plex Serif', serif;
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    transition: font-size 0.3s ease-in-out;
}

/* Responsive Header Adjustments */
@media (max-width: 1024px) {
    #header {
        height: 80vh;
    }

    #header h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    #header {
        height: 70vh;
        padding: 10px;
    }

    #header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    #header {
        height: 60vh;
        padding: 5px;
    }

    #header h1 {
        font-size: 2.5rem;
    }
}

/* ==========================
   🌟 RANKING TABLE STYLING
   ========================== */
   .ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a sleek look */
}

/* Table Headers & Cells */
.ranking-table th, .ranking-table td {
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    word-wrap: break-word; /* To handle long words */
}

/* Table Headers */
.ranking-table th {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Alternate Row Colors */
.ranking-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* Hover Effect on Rows */
.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================
   🌟 RESPONSIVE TABLE STYLING
   ========================== */

/* Tablet/Medium Devices (up to 768px) */
@media (max-width: 768px) {
    .ranking-table th, .ranking-table td {
        padding: 12px;
        font-size: 0.9rem; /* Slightly smaller font on medium devices */
    }

    /* Responsive Image Size for Artist Info */
    .artist-info img {
        width: 50px;
        height: 50px;
    }

    /* Table Width Adjustments */
    .ranking-table {
        width: 100%;
        overflow-x: auto;
        display: block; /* Allows horizontal scrolling */
    }

    /* Text Styling for Smaller Devices */
    .ranking-table th {
        font-size: 1rem;
    }
}

/* Mobile/Small Devices (up to 480px) */
@media (max-width: 480px) {
    .ranking-table th, .ranking-table td {
        padding: 10px;
        font-size: 0.8rem; /* Smaller font size for mobile */
    }

    .ranking-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* Prevent text from wrapping to ensure horizontal scrolling */
    }

    .ranking-table th, .ranking-table td {
        padding: 8px;
    }

    /* Artist Info Layout */
    .artist-info {
        flex-direction: column;
        text-align: center;
    }

    .artist-info img {
        width: 35px;
        height: 35px;
    }

    /* Ensuring better readability on small screens */
    .ranking-table td {
        font-size: 0.9rem;
    }
}

/* Very Small Screens / Portrait Mobile (up to 320px) */
@media (max-width: 320px) {
    .ranking-table th, .ranking-table td {
        padding: 6px; /* Less padding for very small screens */
        font-size: 0.7rem; /* Smaller font for better fit */
    }

    /* Further reduce image size for tiny screens */
    .artist-info img {
        width: 30px;
        height: 30px;
    }
}



 /* Container for the images */
.image-container {
    display: flex;
    flex-direction: column;  /* Align images vertically */
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 100%;
  }
  
  /* Make the images responsive */
  .responsive-image {
    width: 100%;  /* Allow the image to scale to the width of its container */
    max-width: 100%; /* Prevent images from overflowing the container */
    height: auto; /* Maintain the aspect ratio */
    object-fit: contain; /* Ensures the image doesn't get distorted */
    margin-bottom: 10px; /* Space between images */
  }
  
  /* Optional: Add responsiveness for very small screens */
  @media (max-width: 600px) {
    .responsive-image {
      max-width: 100%;
      width: auto; /* Keep width proportionate on smaller screens */
    }
  }
  

  /* ZLA index tabel*/
  /* Table Styling */
  .table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px; /* Set a max height for the scroll */
  }

  table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
  }

  thead {
    background-color: #b46363;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0; /* Freezes the header */
    z-index: 2;
  }

  th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #b46161;
  }

  th {
    background-color: #b46363;
    color: #fff;
    text-transform: uppercase;
  }

  /* Sticky Left Column */
  tbody td:first-child,
  thead th:first-child {
    position: sticky;
    left: 0;
    background-color: #f4f4f4;
    z-index: 1;
  }

  /* Striped Row Effect */
  tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
  }

  tbody tr:nth-child(even) {
    background-color: #ffffff;
  }

  /* Hover Effect */
  tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease-in-out;
  }

  /* Responsive Table */
  @media (max-width: 768px) {
    th, td {
      font-size: 14px;
      padding: 10px;
    }
  }

/* ==========================
   🌟 ARTIST IMAGE STYLING
   ========================== */
.artist-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================
   🌟 ARTIST IMAGE STYLING
   ========================== */
   .artist-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Allows flexibility on smaller screens */
}

/* Artist image settings */
.artist-info img {
    width: 100%; /* Makes it responsive within its container */
    max-width: 350px; /* Keeps the maximum size */
    height: auto; /* Maintains aspect ratio */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

/* Artist name styling */
.artist-info span {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

/* ==========================
   🌟 RESPONSIVE ADJUSTMENTS
   ========================== */
@media (max-width: 1024px) {
    .artist-info img {
        max-width: 300px; /* Reduce size slightly for tablets */
    }
}

@media (max-width: 768px) {
    .artist-info img {
        max-width: 250px; /* Further reduce size for mobile */
    }
}

@media (max-width: 480px) {
    .artist-info img {
        max-width: 100px; /* Smallest size for mobile */
    }
}

.swiper-pagination {
    text-align: center;
    margin-top: 15px;
}

.swiper-pagination-bullet {
    background: #ddd;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: #ff5733; /* Change active bullet color */
}



.artist-info span {
    font-size: 1rem;
    font-weight: bold;
}

/* ==========================
   🌟 SWIPER CAROUSEL STYLING
   ========================== */
.swiper {
    width: 100%;
    padding: 20px 0;
    position: relative;
    margin-left: 20%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    margin-right: 25%;
}

.ranking-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 300px;

}

.rank {
    font-size: 2rem;
    font-weight: bold;
}

.song {
    font-weight: bold;
    font-size: 1.2rem;
}

.views,
.engagement {
    font-size: 0.9rem;
    color: #ddd;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: white !important;
    width: 50px;
    height: 100%;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 10px !important;
}

/* ==========================
   🌟 MEDIA QUERIES
   ========================== */
@media (max-width: 768px) {
    .ranking-card {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .ranking-card {
        width: 220px;
        padding: 15px;
    }

    .swiper-pagination {
        bottom: 5px !important;
    }

    .swiper-wrapper {
        margin-left: 50px;
        align-items: center;
    }
}



