@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
}

.header {
  transform: translateX(-50%);
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
    all: unset;
    cursor: pointer;
}

.header-right .search-bar input {
  width: 200px !important;
  box-sizing: border-box !important;
  transition: width 0.3s ease;
}

.header-right .search-bar input:focus,
.header-right .search-bar input:not(:placeholder-shown),
.header-right .search-bar.has-results input {
  width: 300px !important;
  box-sizing: border-box !important;
}

  .container {
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw; /* Ensure container doesn't exceed viewport width */
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    padding-top: 7rem;
    position: relative;
    margin: 0 auto; /* Center the container */
  }
 /* Add these styles to match the homepage card design exactly */

.categories-container {
  margin: 2rem auto;
  max-width: 90%;
}

.latest-updates {
  position: relative;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(7, 230px); /* 7 cards per row */
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
  }

  .update-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 230px; /* Fixed width */
    height: 360px; /* Fixed height */
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer; /* Show pointer on hover */
  }
  
  .update-card:hover {
    transform: translateY(-5px);
  }
  
  .update-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .scroll-top-button.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-top-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .scroll-top-button svg {
    width: 24px;
    height: 24px;
  }

/* Add after the existing .sort-dropdown styles */

/* Show sort dropdown only when active */
.sort-dropdown {
  display: none !important;
}

.sort-dropdown.show {
  display: block !important;
}

.sort-dropdown.chip-grid {
  display: none !important;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
}

.sort-dropdown button {
  width: 100%;
  padding: 0.5rem 0.85rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 0.2rem 0;
}

.sort-dropdown button:hover {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.sort-dropdown button.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 600;
}
}



@media (max-width: 768px) {
  .sort-dropdown {
      width: 180px;
  }

  .sort-dropdown button {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
  }
}
  
.info-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: flex;           /* Add these flex properties */
    align-items: center;     /* to center the content */
    justify-content: center; /* in both directions */
    padding: 0;             /* Remove any default padding */
    line-height: 1;         /* Reset line height */
    transform: translate(0, 0); /* Force GPU rendering */
    -webkit-transform: translate3d(0, 0, 0); /* iOS specific */
}

/* Add specific iOS/Safari fixes */
@supports (-webkit-touch-callout: none) {
    .info-button {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
}

.info-button:hover {
  opacity: 1;
}

.update-info {
  padding: 0.5rem;
  text-align: center;
}

.update-info h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-boxes {
    display: flex;
    gap: 5px;
  }

  .info-box {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: var(--accent-color);
    color: var(--text-primary);
  }

  .info-box:nth-child(1) {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.8);
  }
  
  /* DUB styling */
  .info-box:nth-child(2) {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.8);
  }
  
  /* Year styling - keep original */
  .info-box:nth-child(3) {
    background: rgba(255, 255, 255, 0.1);
  }

  .expanded-content .info-boxes {
    margin-bottom: 15px;
  }

  .expanded-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: var(--bg-secondary);
    border-radius: 8px;
    z-index: 10;
    transform-origin: bottom;
    opacity: 0;
    visibility: hidden;
    display: block; /* Change from 'none' to 'block' */
    transition: all 0.3s ease;
    transform: translateY(10px);
}
  
  @media (max-width: 1024px) {
    .info-button {
        display: block;
    }
}

  .expanded-content {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }

  .expanded-content::-webkit-scrollbar {
    display: none;
  }
  
  .expanded-info.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


  .expanded-content h2 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
  }
  
  .expanded-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
  }
  
  .expanded-info .synopsis {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.75rem;
  }
  
  .expanded-info .additional-info {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
    padding-bottom: 1rem;
  }

.close-button {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}


/* mobile nav */





/* mobile nav end */


  

/* Responsive grid adjustments */
@media (max-width: 1800px) {

    .search-grid {
      grid-template-columns: repeat(6, 230px);
    }
  }
  
  @media (max-width: 1500px) {
    .search-grid {
      grid-template-columns: repeat(5, 230px);
    }
  }
  
  @media (max-width: 1200px) {
    .search-grid {
      grid-template-columns: repeat(4, 230px);
    }
  }
  
  @media (max-width: 992px) {
    .search-grid {
      grid-template-columns: repeat(3, 230px);
    }
  }
  
  @media (max-width: 768px) {
    .latest-updates {
        text-align: center;
    }

    .latest-updates h2 {
        align-items: center;
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .search-grid {
        grid-template-columns: repeat(2, 140px);
        gap: 1rem;
        padding: 0.8rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .update-card {
        width: 140px;
        height: 240px;
    }
    
    .update-card img {
        height: 190px;
    }

    .update-info {
        padding: 0.3rem;
    }

    .update-info h3 {
        font-size: 0.75rem;
        margin-top: -0.1rem;
        padding-bottom: 0.3rem;
    }

    .info-boxes {
        margin-top: -0.3rem;
        gap: 3px;
    }

    .info-box {
        padding: 2px 4px;
        font-size: 0.5rem;
    }

    /* Expanded info adjustments */
    .expanded-content h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .expanded-info .synopsis {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .expanded-info .additional-info {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .info-button {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
    }
}
  
  @media (max-width: 340px) {
    .latest-updates {
        text-align: center;
    }

    .latest-updates h2 {
        align-items: center;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .update-card {
        width: 140px;
        height: 230px;
    }
    
    .update-card img {
        height: 170px;
    }
    
    .search-grid {
      grid-template-columns: repeat(1, 140px); /* 1 column for very small screens */
      gap: 0.6rem; /* Slightly reduced gap */
      padding: 0.5rem;
      margin: 0 auto;          /* Center the grid */
      width: 100%;            /* Full width */
      box-sizing: border-box;
      justify-content: center;
  }

  .update-card {
    width: 140px;  /* Changed back from 110px */
    height: 230px; /* Adjusted height proportionally */
  }

  .update-card img {
      height: 150px; /* Adjusted image height */
  }

  /* Adjust text sizes for smaller cards */
  .update-info {
      padding: 0.1;
  }

  .update-info h3 {
      font-size: 0.6rem; /* Slightly smaller font */
      margin-top: -0.2rem;
      padding-bottom: 0.2rem;
  }

  .info-boxes {
    margin-top: -0.5rem;
      gap: 2px;
  }

  .info-box {
      padding: 1px 3px;
      font-size: 0.4rem;
  }

    /* Adjust expanded info for smaller cards */
    .expanded-content h2 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .expanded-info .synopsis {
        font-size: 0.55rem;
        margin-bottom: 8px;
    }

    .expanded-info .additional-info {
      font-size: 0.6rem;
      margin-bottom: 8px;
    }

    .info-button {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }

}

  @media (max-width: 1224px) {
    .nav-buttons {
      display: none; /* Hide nav buttons on mobile/tablet */
    }
    
    body .mobile-nav {
      display: flex;
    }

      .search-results {
        right: 0;
      }
    
  }
  
  .filter-actions {
    display: flex;
    align-items: center; /* Center align items vertically */
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center; /* Center align items horizontally */
  }
  
  #sort-label {
    font-weight: bold;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: var(--header-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    height: 40px; /* Ensure same height as clear button */
    display: flex;
    align-items: center; /* Center text vertically */
  }
  
  #sort-label:hover {
    background: var(--button-color);
    transform: translateY(-1px);
  }
  
  .sort-dropdown {
    display: none;
    position: absolute;
    background-color: var(--header-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.5rem 0;
    max-height: 300px;
    overflow-y: auto;
    left: 0;
    top: calc(100% + 0.4rem);
  }
  
.sort-dropdown.show.chip-grid {
  display: flex !important;
}  .sort-dropdown button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0.25rem 0;
  }
  
  .sort-dropdown button:hover {
    background: var(--accent-color);
    padding-left: 1.5rem;
  }
  
  .sort-dropdown button.active {
    background: var(--accent-color);
    position: relative;
    padding-right: 2.5rem;
  }

/* stuff from video page */

/* NEW BOOKMARK CARDS */

.bookmark-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box; /* Add this */
  transition: transform 0.3s ease !important;
  cursor: pointer; /* Show pointer on hover */
}


.bookmark-card.info-active {
  transform: none !important; /* Prevent the hover transform when info is active */
}

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

.bookmark-card__image {
  border-radius: 8px;
  position: relative;
  width: 100%;
  padding-top: 160%; /* Maintain aspect ratio */
  height: 0; /* Reset height */
}

.bookmark-card__image img {
  border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookmark-card__overlay {
  border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%);
}

.bookmark-card__progress {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.bookmark-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--sub {
    background: #ff6b6b;
}

.badge--dub {
    background: #4ecdc4;
}

.bookmark-card__content {
  border-radius: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 12px;
  z-index: 3;
  transition: transform 0.3s ease; /* Add transition here instead */
  box-sizing: border-box;
}



.bookmark-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3; /* Standardize line height */
  height: 2.6em; /* Force consistent height for 2 lines */
  min-height: 2.6em; /* Ensure minimum height even with short titles */
}

.bookmark-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.bookmark-card__dot {
    font-size: 0.5rem;
}

.bookmark-card__dot:last-of-type {
    margin-right: 4px;
}

.bookmark-card__status {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto; /* Push status to the right */
}



/* Grid layout */
#bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    #bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

.bookmark-card__hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.95);
  padding-left: 12px;
  padding-right: 12px;
  transition: height 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

@media (min-width: 768px) {
  .bookmark-card:hover .bookmark-card__hover-info {
    height: 100%;
    overflow: hidden;
  }
}

.bookmark-card__description {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-card__info-item {
  font-size: 0.75rem;
  color: #ccc;
  display: flex;
  flex-direction: column;
  /* Remove justify-content: space-between */
  gap: 8px; /* Add gap between label and value */
  margin-bottom: 0.5rem;
}

.bookmark-card__info-item strong {
  color: white; /* Make labels more visible */
  min-width: fit-content; /* Prevent label from wrapping */
}

/* Optional: if you want all values to align */
.bookmark-card__info-item span:last-child {
  color: rgb(168, 168, 168); /* Differentiate the value color */
}

.bookmark-card__plus-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.85);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease;
}

.bookmark-card__plus-btn:hover {
    background: rgba(0, 0, 0, 0.95);
}

.bookmark-card__status-dropdown {
  position: absolute;
  top: 40px;
  right: 8px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
  z-index: 5;
  display: none;
  transform-origin: top right;
}

.bookmark-card__status-dropdown.show {
    display: block;
}

.bookmark-card__status-option {
    padding: 8px 16px;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookmark-card__status-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bookmark-card__status-option-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bookmark-card__info-btn {
    position: absolute;
    top: 8px;
    right: 44px; /* Position next to plus button */
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.85);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-style: italic;
    font-family: serif;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease;
}

.bookmark-card__info-btn:hover {
    background: rgba(0, 0, 0, 0.95);
}

/* Show info button on mobile */
@media (max-width: 768px) {
    .bookmark-card__info-btn {
        display: flex;
    }
    
    .bookmark-card__hover-info.show {
      display: block;
      height: 100%;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important; /* for smooth scrolling on iOS */
      padding-bottom: 40px; /* Add extra padding at bottom for better scroll experience */
      text-align: left;
  }
  
  /* Make scrollbar less intrusive on mobile */
  .bookmark-card__hover-info::-webkit-scrollbar {
      width: 4px;
  }
  
  .bookmark-card__hover-info::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
  }
}

@media (max-width: 768px) {
  .bookmark-card__badges {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
  }
  
  .badge {
      margin-bottom: 2px; /* Add some spacing between stacked badges */
  }

}

@media (max-width: 768px) {
  /* Existing code remains */
  .bookmark-card__badges {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
  }
  
  .badge {
      margin-bottom: 2px; /* Add some spacing between stacked badges */
  }
  
  /* New code for mobile optimization */
  .bookmark-card__title {
    font-size: 0.8rem; /* Smaller title font */
    margin-bottom: 4px; /* Less bottom margin */
    -webkit-line-clamp: 1; /* Limit to 1 line on mobile */
    height: 1.3em; /* Adjust height for single line on mobile */
    min-height: 1.3em; /* Ensure minimum height on mobile */
}
  
  .bookmark-card__meta {
      font-size: 0.7rem; /* Smaller metadata text */
      gap: 4px; /* Less gap between items */
  }
  
  .bookmark-card__content {
      padding: 8px; /* Smaller padding for content container */
  }
  
  .bookmark-card__plus-btn, 
  .bookmark-card__info-btn {
      width: 24px; /* Smaller button size */
      height: 24px; /* Smaller button size */
  }
  
  .bookmark-card__info-btn {
      right: 36px; /* Adjust position relative to plus button */
  }
  
  /* Adjust hover info for better mobile experience */
  .bookmark-card__description {
      font-size: 0.45rem;
      line-height: 1.3;
  }
  
  .bookmark-card__info-item {
      font-size: 0.5rem;
      margin-bottom: 0.3rem;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .bookmark-card__title {
    font-size: 0.75rem;
    height: 1.3em; /* Maintain consistent height */
    min-height: 1.3em;
}
  
  .bookmark-card__meta {
      font-size: 0.65rem;
      gap: 3px;
  }
  
  .bookmark-card__content {
      padding: 6px;
  }
  
  .badge {
      font-size: 0.65rem;
      padding: 1px 4px;
  }
}

/* Mobile optimizations for bookmark card hover info */
@media (max-width: 768px) {
  /* Make the hover info take full height and improve scrolling */
  .bookmark-card__hover-info.show {
      height: 100%;
      padding-top: 12px; /* Add padding at the top */
      padding-bottom: 55px; /* Extra padding at bottom for better scrolling */
      overflow-y: auto;
      -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
      background: rgba(0, 0, 0, 0.98); /* Slightly darker background for better readability */
  }
  
  /* Add a close button at the top of expanded info */
/*   .bookmark-card__hover-info.show::before {
      content: '×';
      position: absolute;
      top: 8px;
      right: 8px;
      width: 24px;
      height: 24px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: bold;
      color: #fff;
  } */
  
  /* Improve the description text */
  .bookmark-card__hover-info.show .bookmark-card__description {
      font-size: 0.45rem;
      line-height: 1.5;
      margin-top: 8px;
      margin-bottom: 12px;
      color: rgba(255, 255, 255, 0.9);
      -webkit-line-clamp: none; /* Remove line clamp to show full text */
      max-height: none;
  }
  
  /* Enhance info items for better readability */
  .bookmark-card__hover-info.show .bookmark-card__info-item {
      font-size: 0.5rem;
      padding: 6px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 0;
  }
  
  .bookmark-card__hover-info.show .bookmark-card__info-item:last-child {
      border-bottom: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .bookmark-card__hover-info.show .bookmark-card__description {
      font-size: 0.45rem;
  }
  
  .bookmark-card__hover-info.show .bookmark-card__info-item {
      font-size: 0.5rem;
      padding: 4px 0;
  }
}

/* Mobile optimizations for status dropdown */
@media (max-width: 768px) {
  .bookmark-card__status-dropdown {
      min-width: 100px; /* Smaller minimum width */
      right: 4px; /* Position closer to edge */
      top: 36px; /* Position closer to button */
      max-width: 40%; /* Limit width as percentage of card */
      padding: 4px 0; /* Smaller padding */
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Add shadow for visibility */
  }
  
  .bookmark-card__status-option {
      padding: 6px 10px; /* Smaller padding */
      font-size: 0.75rem; /* Smaller font */
      gap: 6px; /* Less space between dot and text */
  }
  
  .bookmark-card__status-option-dot {
      width: 6px; /* Smaller dot */
      height: 6px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .bookmark-card__status-dropdown {
      min-width: 85px;
      max-width: 45%;
  }
  
  .bookmark-card__status-option {
      padding: 5px 8px;
      font-size: 0.7rem;
      gap: 4px;
  }
  
  .bookmark-card__status-option-dot {
      width: 5px;
      height: 5px;
  }
}



/* bookmark done */

@media (min-width: 1225px) {
  body #searchButton {
      display: none;
  }
  .update-card .info-button,
    .update-card .close-button {
        display: none;
    }

    /* Base expanded info style */
    .update-card .expanded-info {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-secondary);
      border-radius: 8px;
      z-index: 10;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      transform: translateY(10px);
      /* Allow pointer events so clicks and scrolling work */
      pointer-events: auto;
      display: block;
    }

    /* Show on hover */
    .update-card:hover .expanded-info {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Make content scrollable */
    .expanded-content {
      height: 100%;
      overflow-y: hidden;
      padding: 15px;
      position: relative;
      z-index: 11;
      pointer-events: auto;
      /* Enable scrolling and clicking inside the content */
      -webkit-overflow-scrolling: touch; /* improves mobile scroll performance */
    }

    .expanded-info .synopsis {
      overflow: hidden;
    }
    .expanded-info .additional-info {
      overflow: hidden;
  }
}

/* filters and all that */

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  margin-left: auto; /* Push to right */
  width: fit-content; /* Only take up needed space */
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Fixed width for square buttons */
  height: 40px; /* Fixed height for square buttons */
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  background: var(--header-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.action-button:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}

.action-button:active {
  transform: translateY(0);
}

.action-button svg {
  width: 20px;
  height: 20px;
}

.action-button.clear-filters:hover {
  background: rgba(255, 59, 59, 0.8); /* Reddish color with some transparency */
  border-color: rgba(255, 59, 59, 0.8);
}


/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .action-button {
    width: 35px;
    height: 35px;
  }

  .action-button svg {
    width: 16px;
    height: 16px;
  }
  #sort-label {
    height: 35px; /* Ensure same height as clear button on mobile */
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }
}

/* ================================
   REDESIGNED FILTER STYLES
   ================================ */

.filters-container {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  margin: 1rem auto;
  max-width: 90%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Filter Rows */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Row 1: Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}

.filter-button {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.filter-button:hover {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.filter-button svg {
  transition: transform 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Genre count badge */
.genre-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  margin-left: 0.25rem;
  min-width: 1rem;
}

.filter-dropdown.active .filter-button {
  border-color: var(--accent-color);
  background: var(--button-color);
}

.filter-dropdown.active .filter-button svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Row 2: Type & Country chips */
.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  opacity: 0.7;
  padding-right: 0.25rem;
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.type-filter,
.country-filter {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.type-button {
  padding: 0.4rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  font-weight: 500;
}

.type-button:hover:not(.selected) {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.type-button.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 600;
}

/* Row 3: Actions */
.filter-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.filter-actions-left,
.filter-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-actions-right {
  position: relative;
}

.action-button.clear-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: fit-content;
  white-space: nowrap;
}

.action-button.clear-filters svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.action-button.clear-filters svg {
  width: 14px;
  height: 14px;
}

.action-button.clear-filters:hover {
  background: rgba(255, 59, 59, 0.15);
  border-color: rgba(255, 59, 59, 0.5);
  color: #ff6b6b;
}

.sort-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
}

.sort-trigger:hover {
  border-color: var(--accent-color);
  background: var(--button-color);
}

.sort-trigger.active {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.sort-trigger svg {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.sort-trigger.active svg {
  transform: rotate(180deg);
  opacity: 1;
}

.sort-value {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ================================
   DROPDOWN CONTENTS
   ================================ */

/* Genre header with search and clear button */
.genre-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.genre-header .genre-search {
  flex: 1;
  margin: 0;
  width: auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.genre-clear-btn {
  padding: 0.4rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.genre-clear-btn:hover {
  background: rgba(255, 59, 59, 0.15);
  border-color: rgba(255, 59, 59, 0.5);
  color: #ff6b6b;
}

.genre-clear-btn.has-selection {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.genre-search {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: inherit;
}

.genre-search:focus {
  outline: none;
  border-color: var(--accent-color);
}

.genre-search::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Ensure all filter contents are hidden by default */
.filter-content {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

/* Specifically ensure year filter is closed by default */
#yearFilter .filter-content {
  display: none !important;
}

/* Genre dropdown */
#genreFilter .filter-content {
  width: 360px;
  max-height: 340px;
}

/* Year dropdown - 3 column grid */
#yearFilter .filter-content {
  width: 240px;
  max-height: 300px;
  overflow-y: auto;
}

/* Season dropdown */
#seasonFilter .filter-content {
  width: 200px;
}

/* Status dropdown */
#statusFilter .filter-content {
  width: 220px;
}

/* Chip grid layout for dropdowns */
.filter-content.chip-grid {
  display: none !important;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
}

/* Show chip-grid only when parent dropdown is active */
.filter-dropdown.active .filter-content.chip-grid {
  display: flex !important;
}

/* Year dropdown specific - force 3 columns when active */
#yearFilter .filter-content.chip-grid {
  display: none !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

#yearFilter.active .filter-content.chip-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
}

/* Season dropdown - flex when active */
#seasonFilter.active .filter-content.chip-grid {
  display: flex !important;
}

/* Status dropdown - flex when active */
#statusFilter.active .filter-content.chip-grid {
  display: flex !important;
}

#yearFilter .filter-content.chip-grid .filter-chip {
  width: 100%;
  justify-content: center;
}

/* Filter chip styling */
.filter-chip {
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.filter-chip:hover {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.filter-chip.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 600;
}

/* Genre list - horizontal chips */
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
}

/* Custom scrollbar */
.genre-list::-webkit-scrollbar,
.filter-content::-webkit-scrollbar {
  width: 5px;
}

.genre-list::-webkit-scrollbar-track,
.filter-content::-webkit-scrollbar-track {
  background: transparent;
}

.genre-list::-webkit-scrollbar-thumb,
.filter-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.genre-list::-webkit-scrollbar-thumb:hover,
.filter-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.genre-list > div {
  padding: 0.4rem 0.7rem;
  margin: 0;
  font-size: 0.75rem;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.genre-list > div:hover {
  background: var(--button-color);
  border-color: var(--accent-color);
}

.genre-list > div.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 600;
}

.filter-dropdown.active .filter-content {
  display: block;
  animation: filterDropdown 0.15s ease;
}

#yearFilter .filter-content {
  display: none !important;
}

#yearFilter.active .filter-content {
  display: block !important;
}

@keyframes filterDropdown {
  from {
      opacity: 0;
      transform: translateY(-8px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Remove old checkmark styles */
.filter-content div.selected {
  background: var(--accent-color);
}

.filter-content div.selected::after {
  content: "";
}

/* Genre list selected styles - no checkmarks */
.genre-list div.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 500;
}

.genre-list div.selected::after {
  content: "";
}

/* Genre Search Highlight */
.genre-list div.highlight {
  background: var(--accent-color);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Status and Season Options */
.status-option,
.season-option,
.year-option {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 0.25rem 0.5rem;
}

.status-option:hover,
.season-option:hover,
.year-option:hover {
  background: var(--accent-color);
  padding-left: 1.5rem;
}

@media (min-width: 769px) {
  .section-toggle {
      display: none;
  }
}

/* ================================
   MOBILE RESPONSIVENESS
   ================================ */
@media (max-width: 768px) {
  .filters-container {
    padding: 1rem;
    gap: 0.75rem;
    margin: 0.75rem auto;
    border-radius: 12px;
  }
  
  /* Row 1: Dropdowns - 2x2 grid */
  .filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .filter-dropdown {
    min-width: unset;
    max-width: none;
  }
  
  .filter-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
  
  .filter-button svg {
    width: 14px;
    height: 14px;
  }
  
  /* Dropdowns on mobile - position relative to button like PC */
  .filter-dropdown .filter-content {
    position: absolute;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 0.4rem) !important;
    transform: none !important;
    width: auto !important;
    max-width: 90vw !important;
    max-height: 50vh;
    z-index: 1001;
    border-radius: 12px;
  }
  
  /* Year dropdown - still 3 columns on mobile, but only when active */
  #yearFilter .filter-content.chip-grid {
    display: none !important;
    grid-template-columns: repeat(3, 1fr);
  }
  
  #yearFilter.active .filter-content.chip-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
  }
  
  #genreFilter .filter-content {
    max-height: 65vh;
  }
  
  #yearFilter .filter-content {
    max-height: 55vh;
  }
  
  /* Row 2: Chips row */
  .filter-chips-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
  }
  
  .filter-section {
    width: 100%;
  }
  
  .filter-section-label {
    font-size: 0.65rem;
    min-width: 40px;
  }
  
  .filter-divider {
    display: none;
  }
  
  .type-filter,
  .country-filter {
    flex: 1;
    justify-content: flex-start;
  }
  
  .type-button {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  
  /* Row 3: Actions */
  .filter-actions-row {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .action-button.clear-filters {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    justify-content: center;
  }
  
  .action-button.clear-filters span {
    display: none;
  }
  
  .sort-trigger {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
  }
  
  /* Genre list mobile */
  .genre-header {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  
  .genre-header .genre-search {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .genre-clear-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
  
  .genre-list {
    gap: 0.3rem;
    padding: 0.5rem;
    max-height: calc(65vh - 55px);
  }
  
  .genre-list > div,
  .filter-chip {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .genre-count-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }
}

  /* ********************************** //
// This handles the quick search.    //
// *********************************/

.search-container {
  position: relative;
  width: 400px;
  margin: auto;
  overflow: hidden;
}

.search-results {
  margin-top: 8px;
  position: absolute;
  width: 100%;
  top: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.23s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.23s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.23s ease-out forwards;
  position: relative;
  border-radius: 8px;
  margin: 2px 6px;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.search-result:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.23s ease;
}

.search-result:hover img {
  transform: scale(1.05);
}

.search-result-info {
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.6em;
}

.search-result-desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.view-more {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  padding: 14px 20px;
  margin: 8px;
  background: linear-gradient(135deg, var(--button-color) 0%, rgba(var(--button-color), 0.8) 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.23s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, rgba(var(--accent-color), 0.9) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result:nth-child(1) { animation-delay: 0.07s; }
.search-result:nth-child(2) { animation-delay: 0.14s; }
.search-result:nth-child(3) { animation-delay: 0.21s; }
.search-result:nth-child(4) { animation-delay: 0.28s; }
.search-result:nth-child(5) { animation-delay: 0.35s; }

/* Responsive adjustments */
@media (max-width: 1224px) {

  .expanded-content h2 {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    padding-bottom: 0.2rem;
}



  .scroll-top-button {
    width: 35px !important;
    height: 35px !important;
    bottom: 90px !important;
    right: 15px !important;
  }

  .scroll-top-button svg {
    width: 16px !important;
    height: 16px !important;
  }
  .search-container {
    width: 100%;
    max-width: 300px;
  }

  .search-result img {
    width: 40px;
    height: 60px;
  }
  
  .search-result-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  .view-more {
    font-size: 0.9rem; /* Smaller font size */
}
}

.pagination-button:hover:not(.disabled) {
  background-color: var(--button-hover);
}

.pagination-button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pagination-button {
  display: inline-block;
  text-decoration: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 0 20px;
  transition: all 0.2s ease;
  position: relative; /* Add this for ::after positioning */
}

.pagination-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.pagination-button:active {
  transform: translateY(0);
}

.pagination-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.pagination-button:hover::after {
  width: 80%;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.page-number {
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px;
  color: var(--text-primary);
}

/* skeleton */

@keyframes skeleton-loading {
  0% {
      background-color: var(--bg-secondary);
  }
  100% {
      background-color: var(--bg-primary);
  }
}

/* Hide all content when skeleton class is applied */
.update-card.skeleton img,
.update-card.skeleton .update-info,
.update-card.skeleton .info-button,
.update-card.skeleton .expanded-info,
.update-card.skeleton .info-boxes,
.anime-card.skeleton img,
.anime-card.skeleton .anime-card__content,
.anime-card.skeleton .anime-card__actions,
.anime-card.skeleton .anime-card__badges,
.anime-card.skeleton .anime-card__hover-info {
  display: none;
} 

.update-card.skeleton,
.anime-card.skeleton {
  background: var(--bg-secondary);
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: 8px;
  pointer-events: none; 
  cursor: default;
  height: 180px; /* Reduced height to make skeleton less stretched */
}

/* Mobile skeleton height adjustments */
@media (max-width: 768px) {
  .update-card.skeleton {
    height: 200px;
  }
}

@media (max-width: 350px) {
  .update-card.skeleton {
    height: 180px;
  }
}

