  .filter-section-wrapper {
      position: sticky;
      top: 50px;
      padding: 10px 0;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgb(255 255 255 / 94%);
      width: 100%;
      z-index: 9;
      overflow: hidden;
  }

  body.dark-mode .filter-section-wrapper {
      background-color: rgb(26 32 44 / 94%);
  }

  .filter-section {
      flex-grow: 1;
      display: flex;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
      white-space: nowrap;
      padding: 0 15px;
      gap: 8px;
      -ms-overflow-style: none;
      scrollbar-width: none;
  }

  .filter-section::-webkit-scrollbar {
      display: none;
  }

  .filter-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 15px;
      border-radius: 20px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      color: inherit;
      background-color: rgba(0, 0, 0, 0.05);
      border: none;
      cursor: pointer;
      transition: background-color 0.2s;
      flex-shrink: 0;
  }

  body.dark-mode .filter-item {
      background-color: rgba(255, 255, 255, 0.1);
  }

  .filter-item:hover {
      background-color: #d2d2d2;
  }

  body.dark-mode .filter-item:hover {
      background-color: rgba(255, 255, 255, 0.205);
  }

  .filter-item.active {
      color: #ffffff;
      background-color: #1c1c1c;
      font-weight: 600;
  }

  body.dark-mode .filter-item.active {
      color: #000000;
      background-color: #ffffff;
  }


  .scroll-btn {
      background: none;
      border: none;
      color: #ffffff;
      padding: 0 8px;
      cursor: pointer;
      z-index: 101;
      font-size: 1.5rem;
      height: 40px;
      display: flex;
      align-items: center;
      transition: background-color 0.2s;
  }

  .scroll-btn:hover {
      background-color: rgba(91, 91, 91);
  }

  .left-scroll-btn {
      background: rgb(69 69 69);
      border-radius: 50%;
      margin-left: 50px;
  }

  .right-scroll-btn {
      background: rgb(69 69 69);
      border-radius: 50%;
      margin-right: 50px;
  }

  .scroll-btn i {
      width: 24px;
      height: 24px;
  }

  .fallback-modern {
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .fallback-card {
      width: 100%;
      border-radius: 16px;
      text-align: center;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .fallback-icon {
      width: 150px;
      margin-bottom: 1rem;
      opacity: 0.85;
  }

  .fallback-card h2 {
      font-size: 1.3rem;
      font-weight: 600;
      color: inherit;
      margin-bottom: 0.5rem;
  }

  .fallback-card p {
      font-size: 0.8rem;
      color: #6b7280;
      margin-bottom: 1.5rem;
  }

  .fallback-link {
      display: inline-block;
      padding: 0.6rem 1.25rem;
      background-color: #3b82f6;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 500;
      transition: background-color 0.2s ease-in-out;
  }

  .fallback-link:hover {
      background-color: #111827;
  }

  .pagination {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      margin: 20px 0;
      gap: 5px;
      font-family: Arial, sans-serif;
  }

  .page-btn {
      display: inline-block;
      padding: 8px 12px;
      border-radius: 5px;
      border: 1px solid #269b92;
      text-decoration: none;
      color: #269b92;
      transition: all 0.2s ease;
  }

  .page-btn:hover {
      background-color: #269b92;
      color: #fff;
  }

  .page-btn.current {
      background-color: #269b92;
      color: #fff;
      pointer-events: none;
  }

  .page-btn.disabled {
      color: #aaa;
      border-color: #aaa;
      pointer-events: none;
  }

  .dots {
      padding: 8px 5px;
      color: #999;
      pointer-events: none;
  }


  .recent-books-section {
      padding: 2rem 0;
  }

  body.dark-mode .recent-books-section {
      background-color: rgb(19 19 19 / 30%);
  }

  .view-container {
      position: relative;
      min-height: 500px;
      width: 100%;
      perspective: 1000px;
  }

  .view-transition {
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      width: 100%;
      transform-origin: top center;
  }

  .view-hidden {
      opacity: 0;
      transform: scale(0.92) translateY(20px) rotateX(-4deg);
      filter: blur(5px);
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
  }

  .view-visible {
      opacity: 1;
      transform: scale(1) translateY(0) rotateX(0);
      filter: blur(0);
      position: relative;
      z-index: 1;
  }

  @keyframes springIn {
      0% {
          opacity: 0;
          transform: translateY(40px) scale(0.8);
      }

      60% {
          transform: translateY(-8px) scale(1.02);
      }

      100% {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }

  .view-visible>* {
      opacity: 0;
      /* Start invisible */
      animation: springIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }


  .view-visible>*:nth-child(1) {
      animation-delay: 0.05s;
  }

  .view-visible>*:nth-child(2) {
      animation-delay: 0.10s;
  }

  .view-visible>*:nth-child(3) {
      animation-delay: 0.15s;
  }

  .view-visible>*:nth-child(4) {
      animation-delay: 0.20s;
  }

  .view-visible>*:nth-child(5) {
      animation-delay: 0.25s;
  }

  .view-visible>*:nth-child(6) {
      animation-delay: 0.30s;
  }

  .view-visible>*:nth-child(7) {
      animation-delay: 0.35s;
  }

  .view-visible>*:nth-child(8) {
      animation-delay: 0.40s;
  }

  .view-visible>*:nth-child(9) {
      animation-delay: 0.45s;
  }

  .view-visible>*:nth-child(10) {
      animation-delay: 0.50s;
  }

  .view-visible>*:nth-child(n+11) {
      animation-delay: 0.55s;
  }

  .section-title {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--color-logo-dark);
      margin-bottom: 1.5rem;
      border-bottom: 2px solid var(--color-border);
      padding-bottom: 0.5rem;
  }

  .book-list {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 1rem;
      justify-items: center;
      overflow-x: auto;
      padding-bottom: 8px;
  }

  .book-card {
      text-decoration: none;
      width: 120px;
      height: 150px;
      position: relative;
  }

  .book-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 0.5rem;
      border: 1px solid #999999;
      overflow: hidden;
  }

  .book-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 0.5rem;
      display: block;
      transition: transform 0.2s ease-in-out;
  }

  .book-wrapper:hover .book-cover {
      transform: scale(1.05);
  }

  .book-info-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 0.4rem 0.5rem;
      background: linear-gradient(to top, rgb(249 21 255 / 57%), #00000036);
      color: #fafafa;
      text-align: center;

  }

  .book-title {
      font-size: 1rem;
      padding: 2px;
      font-weight: 600;
      margin-bottom: 0.1rem;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .book-author {
      font-size: 0.75rem;
      font-weight: 600;
      opacity: 0.85;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  section {
      padding: 2rem 0;
  }

  /* --- Main Wrapper --- */
  .filter-bar-wrapper {
      background: #ffffff;
      border-bottom: 1px solid #f3f4f6;
      padding: 12px 0;
      margin-bottom: 20px;
  }

  body.dark-mode .filter-bar-wrapper {
      background: #1e1e1e00;
      border-color: #333;
  }

  .scrollable-menu {
      max-height: 300px;
      overflow-y: auto;
  }

  .dropdown-divider {
      height: 1px;
      background-color: #f3f4f6;
      margin: 4px 0;
  }

  body.dark-mode .dropdown-divider {
      background-color: #404040;
  }

  .scrollable-menu::-webkit-scrollbar {
      width: 6px;
  }

  .scrollable-menu::-webkit-scrollbar-track {
      background: transparent;
  }

  .scrollable-menu::-webkit-scrollbar-thumb {
      background-color: #d1d5db;
      border-radius: 20px;
  }

  body.dark-mode .scrollable-menu::-webkit-scrollbar-thumb {
      background-color: #555;
  }

  .filter-bar-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .result-count {
      font-size: 0.9rem;
      color: #6b7280;
  }

  .result-count strong {
      color: #111827;
      font-weight: 600;
  }

  body.dark-mode .result-count {
      color: #9ca3af;
  }

  body.dark-mode .result-count strong {
      color: #fff;
  }

  .filter-right {
      display: flex;
      gap: 12px;
      align-items: center;
  }

  /* --- Buttons --- */
  .filter-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 1px solid #e5e7eb;
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      color: #374151;
      cursor: pointer;
      transition: all 0.2s;
  }

  .filter-btn:hover {
      background: #f9fafb;
      border-color: #d1d5db;
  }

  body.dark-mode .filter-btn {
      background: #2d2d2d;
      border-color: #404040;
      color: #e5e7eb;
  }

  body.dark-mode .filter-btn:hover {
      background: #363636;
  }

  /* --- Dropdown Menu --- */
  .dropdown-wrapper {
      position: relative;
  }

  .dropdown-menu-box {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      width: 220px;
      background: white;
      border: 1px solid #f3f4f6;
      border-radius: 12px;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      padding: 6px;
      display: none;
      z-index: 1;
      animation: slideDownFade 0.15s ease-out;
  }

  .dropdown-menu-box.show {
      display: block;
  }

  body.dark-mode .dropdown-menu-box {
      background: #2d2d2d;
      border-color: #404040;
  }

  .dropdown-header {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      color: #9ca3af;
      padding: 8px 12px;
      letter-spacing: 0.5px;
  }

  .dropdown-option {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      color: #4b5563;
      text-decoration: none;
      font-size: 0.9rem;
      border-radius: 8px;
      transition: background 0.1s;
  }

  .dropdown-option:hover {
      background: #f3f4f6;
      color: #111827;
  }

  .dropdown-option.active {
      background: #ecfdf5;
      color: #149546;
      font-weight: 500;
  }

  body.dark-mode .dropdown-option {
      color: #d1d5db;
  }

  body.dark-mode .dropdown-option:hover {
      background: #383838;
      color: #fff;
  }

  body.dark-mode .dropdown-option.active {
      background: #14954620;
      color: #149546;
  }

  .check-icon {
      margin-left: auto;
      width: 16px;
      height: 16px;
  }

  /* Utility to hide views */
  .hidden {
      display: none !important;
  }

  /* Active state for the toggle buttons */
  .icon-btn.active {
      background-color: #e2e8f0;
      color: #0f172a;
      border-radius: 6px;
  }

  /* --- Layout Toggles --- */
  .layout-toggles {
      display: flex;
      background: #dbdbdb;
      padding: 2px;
      border-radius: 8px;
      gap: 2px;
      border: 1px solid #9b9b9b;
  }

  body.dark-mode .layout-toggles {
      background: #2d2d2d;
  }

  .icon-btn {
      background: transparent;
      border: none;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      color: #6b7280;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
  }

  .icon-btn.active {
      background: white;
      color: #111827;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  body.dark-mode .icon-btn.active {
      background: #858585;
      color: #fff;
  }

  /* Animation */
  @keyframes slideDownFade {
      from {
          opacity: 0;
          transform: translateY(-8px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @media (max-width: 640px) {
      .result-count {
          display: none;
      }

      .filter-bar-content {
          justify-content: flex-end;
      }
  }