@charset "UTF-8";
/* CSS Document */

  :root {
      --background: 0 0% 100%;
      --foreground: 222 47% 11%;
      --card: 0 0% 100%;
      --card-foreground: 222 47% 11%;
      --popover: 0 0% 100%;
      --popover-foreground: 222 47% 11%;
      --primary: 221 83% 53%;
      --primary-foreground: 210 40% 98%;
      --secondary: 210 40% 96%;
      --secondary-foreground: 222 47% 11%;
      --muted: 210 40% 96%;
      --muted-foreground: 215 16% 47%;
      --accent: 210 40% 96%;
      --accent-foreground: 222 47% 11%;
      --destructive: 0 84% 60%;
      --destructive-foreground: 210 40% 98%;
      --border: 214 32% 91%;
      --input: 214 32% 91%;
      --ring: 221 83% 53%;
      --radius: 0.5rem;
    }

    .dark {
      --background: 222 47% 11%;
      --foreground: 210 40% 98%;
      --card: 217 33% 17%;
      --card-foreground: 210 40% 98%;
      --popover: 217 33% 17%;
      --popover-foreground: 210 40% 98%;
      --primary: 217 91% 60%;
      --primary-foreground: 222 47% 11%;
      --secondary: 217 33% 17%;
      --secondary-foreground: 210 40% 98%;
      --muted: 217 33% 17%;
      --muted-foreground: 215 20% 65%;
      --accent: 217 33% 17%;
      --accent-foreground: 210 40% 98%;
      --destructive: 0 62% 30%;
      --destructive-foreground: 210 40% 98%;
      --border: 217 33% 25%;
      --input: 217 33% 25%;
      --ring: 224 76% 48%;
    }

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

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      line-height: 1.5;
      min-height: 100vh;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: hsl(var(--background));
      border-bottom: 1px solid hsl(var(--border));
      padding: 1rem 0;
    }

    .header-content {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .logo-icon {
      width: 2.5rem;
      height: 2.5rem;
      background: linear-gradient(135deg, hsl(var(--primary)), hsl(221 83% 40%));
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 1.25rem;
    }

    .logo-text h1 {
      font-size: 1.25rem;
      font-weight: 700;
      color: hsl(var(--foreground));
    }

    .logo-text p {
      font-size: 0.75rem;
      color: hsl(var(--muted-foreground));
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .search-box {
      position: relative;
      flex: 1;
      min-width: 200px;
      max-width: 300px;
    }

    .search-box svg {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      width: 1rem;
      height: 1rem;
      color: hsl(var(--muted-foreground));
    }

    .search-input {
      width: 100%;
      padding: 0.5rem 0.75rem 0.5rem 2.25rem;
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      font-size: 0.875rem;
    }

    .search-input::placeholder {
      color: hsl(var(--muted-foreground));
    }

    .search-input:focus {
      outline: none;
      border-color: hsl(var(--ring));
      box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
    }

    .select-wrapper {
      position: relative;
    }

    .select {
      appearance: none;
      padding: 0.5rem 2rem 0.5rem 0.75rem;
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      font-size: 0.875rem;
      cursor: pointer;
    }

    .select:focus {
      outline: none;
      border-color: hsl(var(--ring));
    }

    .select-wrapper::after {
      content: '';
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 4px solid hsl(var(--muted-foreground));
      pointer-events: none;
    }

    .icon-btn {
      width: 2.25rem;
      height: 2.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      cursor: pointer;
      transition: background 0.15s;
    }

    .icon-btn:hover {
      background: hsl(var(--accent));
    }

    .icon-btn svg {
      width: 1.125rem;
      height: 1.125rem;
    }

    .results-count {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      margin-top: 0.5rem;
    }

    .results-count strong {
      color: hsl(var(--foreground));
      font-weight: 500;
    }

    /* Main Layout */
    .main-layout {
      display: flex;
      gap: 1.5rem;
      padding: 1.5rem 0;
    }

    /* Sidebar */
    .sidebar {
      width: 280px;
      flex-shrink: 0;
      position: sticky;
      top: 140px;
      height: fit-content;
      max-height: calc(100vh - 160px);
      overflow-y: auto;
    }

    .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .sidebar-title {
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: hsl(var(--muted-foreground));
    }

    .clear-filters-btn {
      font-size: 0.75rem;
      color: hsl(var(--primary));
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem 0.5rem;
      border-radius: var(--radius);
    }

    .clear-filters-btn:hover {
      background: hsl(var(--accent));
    }

    /* Filter Section */
    .filter-section {
      margin-bottom: 0.5rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .filter-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0.75rem 0;
      cursor: pointer;
      user-select: none;
      background: none;
      border: none;
      color: inherit;
      font: inherit;
      text-align: left;
    }

    .filter-header:hover {
      opacity: 0.8;
    }

    .filter-header:focus-visible {
      outline: 2px solid hsl(var(--ring));
      outline-offset: 2px;
      border-radius: var(--radius);
    }

    .filter-title {
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .filter-chevron {
      width: 1rem;
      height: 1rem;
      transition: transform 0.2s;
    }

    .filter-section.collapsed .filter-chevron {
      transform: rotate(-90deg);
    }

    .filter-content {
      padding-bottom: 0.75rem;
      max-height: 300px;
      overflow-y: auto;
    }

    .filter-section.collapsed .filter-content {
      display: none;
    }

    .filter-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.375rem 0.5rem;
      margin: 0.125rem 0;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.15s;
      background: none;
      border: none;
      color: inherit;
      font: inherit;
      text-align: left;
    }

    .filter-item:hover {
      background: hsl(var(--accent));
    }

    .filter-item.selected {
      background: hsl(var(--primary) / 0.1);
    }

    .filter-item:focus-visible {
      outline: 2px solid hsl(var(--ring));
      outline-offset: 2px;
    }

    .filter-checkbox {
      width: 1rem;
      height: 1rem;
      border: 1px solid hsl(var(--border));
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .filter-item.selected .filter-checkbox {
      background: hsl(var(--primary));
      border-color: hsl(var(--primary));
    }

    .filter-checkbox svg {
      width: 0.75rem;
      height: 0.75rem;
      color: white;
      display: none;
    }

    .filter-item.selected .filter-checkbox svg {
      display: block;
    }

    .filter-label {
      flex: 1;
      font-size: 0.875rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .filter-count {
      font-size: 0.75rem;
      color: hsl(var(--muted-foreground));
      background: hsl(var(--muted));
      padding: 0.125rem 0.375rem;
      border-radius: 9999px;
    }

    /* Active Filter Chips */
    .active-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.25rem 0.5rem;
      background: hsl(var(--primary) / 0.1);
      border: 1px solid hsl(var(--primary) / 0.2);
      border-radius: 9999px;
      font-size: 0.75rem;
      color: hsl(var(--foreground));
    }

    .chip-remove {
      width: 1rem;
      height: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      cursor: pointer;
      border-radius: 9999px;
      color: hsl(var(--muted-foreground));
    }

    .chip-remove:hover {
      background: hsl(var(--destructive) / 0.2);
      color: hsl(var(--destructive));
    }

    .chip-remove svg {
      width: 0.75rem;
      height: 0.75rem;
    }

    .clear-all-btn {
      font-size: 0.75rem;
      color: hsl(var(--destructive));
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem 0.5rem;
    }

    .clear-all-btn:hover {
      text-decoration: underline;
    }

    /* Main Content */
    .main-content {
      flex: 1;
      min-width: 0;
    }

    /* Game Grid */
    .game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }

    /* Game Card */
    .game-card {
      background: hsl(var(--card));
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      overflow: hidden;
      cursor: pointer;
      transition: box-shadow 0.2s, border-color 0.2s;
    }

    .game-card:hover {
      box-shadow: 0 4px 12px hsl(var(--foreground) / 0.1);
      border-color: hsl(var(--primary) / 0.3);
    }

    .game-image {
      position: relative;
      aspect-ratio: 16/9;
      background: hsl(var(--muted));
      overflow: hidden;
    }

    .game-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .game-image-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.05));
    }

    .game-image-placeholder svg {
      width: 3rem;
      height: 3rem;
      color: hsl(var(--muted-foreground) / 0.3);
    }

    .game-info {
      padding: 1rem;
    }

    .game-title {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .game-meta {
      font-size: 0.75rem;
      color: hsl(var(--muted-foreground));
      margin-bottom: 0.5rem;
    }

    .game-description {
      font-size: 0.8125rem;
      color: hsl(var(--muted-foreground));
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 0.75rem;
    }

    .game-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
    }

    .tag {
      font-size: 0.6875rem;
      padding: 0.125rem 0.5rem;
      background: hsl(var(--secondary));
      color: hsl(var(--secondary-foreground));
      border-radius: 9999px;
    }

    .tag.primary {
      background: hsl(var(--primary) / 0.1);
      color: hsl(var(--primary));
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 4rem 2rem;
    }

    .empty-state svg {
      width: 4rem;
      height: 4rem;
      color: hsl(var(--muted-foreground));
      margin-bottom: 1rem;
    }

    .empty-state h3 {
      font-size: 1.125rem;
      margin-bottom: 0.5rem;
    }

    .empty-state p {
      color: hsl(var(--muted-foreground));
      margin-bottom: 1rem;
    }

    .empty-state button {
      padding: 0.5rem 1rem;
      background: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border: none;
      border-radius: var(--radius);
      cursor: pointer;
      font-size: 0.875rem;
    }

    .empty-state button:hover {
      opacity: 0.9;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: hsl(var(--foreground) / 0.5);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }

    .modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .modal {
      background: hsl(var(--card));
      border-radius: var(--radius);
      max-width: 900px;
      width: 100%;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transform: scale(0.95);
      transition: transform 0.2s;
    }

    .modal-overlay.open .modal {
      transform: scale(1);
    }

    .modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 1.5rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .modal-title {
      font-size: 1.5rem;
      font-weight: 700;
      padding-right: 2rem;
    }

    .modal-close {
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: hsl(var(--muted));
      border-radius: var(--radius);
      cursor: pointer;
      flex-shrink: 0;
    }

    .modal-close:hover {
      background: hsl(var(--accent));
    }

    .modal-close svg {
      width: 1.25rem;
      height: 1.25rem;
    }

    .modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem;
    }

    .modal-media {
      position: relative;
      aspect-ratio: 16/9;
      background: black;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 1.5rem;
    }

    .modal-media img,
    .modal-media iframe {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .modal-media iframe {
      object-fit: contain;
    }

    .carousel-btn {
      position: absolute;
		
      top: 50%;
      transform: translateY(-50%);
      width: 2.5rem;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: hsl(var(--background) / 0.9);
      border: 2px solid black;
      border-radius: 9999px;
      cursor: pointer;
      z-index: 10;
		
    }

    .carousel-btn:hover {
      background: hsl(var(--background));
		color:white;
    }

    .carousel-btn.prev {
      left: 0.5rem;
		background-color:#8A8989;
    }

    .carousel-btn.next {
      right: 0.5rem;
		background-color:#8A8989;
		
    }

    .carousel-btn svg {
      width: 1.25rem;
      height: 1.25rem;
		
    }

    .carousel-dots {
      position: absolute;
      bottom: 0.75rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.375rem;
    }

    .carousel-dot {
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 9999px;
      background: hsl(var(--background) / 0.5);
      border: none;
      cursor: pointer;
    }

    .carousel-dot.active {
      background: hsl(var(--background));
    }

    .modal-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 1rem;
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
    }

    .modal-meta-item {
      display: flex;
      align-items: center;
      gap: 0.375rem;
    }

    .modal-meta-item svg {
      width: 1rem;
      height: 1rem;
    }

    .modal-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .modal-description {
      font-size: 0.9375rem;
      line-height: 1.7;
      color: hsl(var(--foreground));
      margin-bottom: 1.5rem;
    }

    .modal-credits {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      margin-bottom: 1.5rem;
      padding: 1rem;
      background: hsl(var(--muted));
      border-radius: var(--radius);
    }

    .play-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      background: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border: none;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
    }

    .play-btn:hover {
      opacity: 0.9;
    }

    .play-btn svg {
      width: 1.25rem;
      height: 1.25rem;
    }

    /* Mobile */
    .mobile-filter-btn {
      display: none;
    }

    @media (max-width: 900px) {
      .sidebar {
        display: none;
      }

      .mobile-filter-btn {
        display: flex;
      }

      .sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        background: hsl(var(--background));
        z-index: 60;
        padding: 1rem;
        overflow-y: auto;
        box-shadow: 4px 0 12px hsl(var(--foreground) / 0.1);
      }

      .mobile-overlay {
        position: fixed;
        inset: 0;
        background: hsl(var(--foreground) / 0.3);
        z-index: 55;
        display: none;
      }

      .mobile-overlay.open {
        display: block;
      }
    }

    @media (max-width: 640px) {
      .header-top {
        flex-direction: column;
        align-items: stretch;
      }

      .header-controls {
        flex-direction: column;
      }

      .search-box {
        max-width: none;
      }

      .game-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: hsl(var(--muted));
    }

    ::-webkit-scrollbar-thumb {
      background: hsl(var(--border));
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: hsl(var(--muted-foreground));
    }