/* ── Reset & Base ── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      font-size: 16px;
      scroll-behavior: smooth;
    }

    body {
      font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      background-color: #0a0e17;
      background-image:
        linear-gradient(135deg, rgba(10,14,23,0.90) 0%, rgba(17,24,39,0.90) 40%, rgba(15,23,42,0.90) 100%),
        url('images/game_play.jpg');
      background-size: cover;
      background-attachment: fixed;
      background-position: center;
      color: #e2e8f0;
      min-height: 100vh;
      line-height: 1.6;
    }

    /* ── Animated background particles ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 20% 30%, rgba(102, 192, 244, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 40%);
      pointer-events: none;
      z-index: 0;
    }

    /* ── Layout ── */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
      position: relative;
      z-index: 1;
    }

    /* ── Hero Banner ── */
    .hero-banner {
      position: relative;
      min-height: 380px;
      display: flex;
      align-items: center;
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('images/game_play.jpg');
      background-size: cover;
      background-position: center 28%;
      opacity: 0.45;
      z-index: 0;
    }

    .hero-banner::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, rgba(10, 14, 23, 0.75) 0%, rgba(10, 14, 23, 0.60) 42%, rgba(10, 14, 23, 0.22) 72%, transparent 100%),
        linear-gradient(to top, rgba(10, 14, 23, 0.55) 0%, transparent 50%);
      z-index: 1;
    }

    .hero-inner {
      position: relative;
      z-index: 2;
      max-width: 1280px;
      margin: 0 auto;
      padding: 52px 32px;
      width: 100%;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .hero-text {
      flex: 1;
      min-width: 0;
    }

    .site-logo {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 14px;
    }

    .site-logo-img {
      height: 80px;
      width: auto;
      filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7));
      animation: float 5s ease-in-out infinite;
      flex-shrink: 0;
    }

    .hero-title {
      font-size: 2.8rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #66c0f4 0%, #8b5cf6 50%, #34d399 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.2;
      margin: 0;
    }

    .hero-subtitle {
      color: #94a3b8;
      font-size: 1.05rem;
      font-weight: 400;
    }

    .hero-stats {
      margin-top: 18px;
      display: flex;
      gap: 28px;
      flex-wrap: wrap;
      font-size: 0.9rem;
      color: #94a3b8;
    }

    .hero-stats span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .hero-stats .count {
      font-weight: 700;
      color: #66c0f4;
      font-size: 1.3rem;
    }

    .hero-char {
      flex-shrink: 0;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      width: 280px;
      align-self: flex-end;
    }

    .hero-char-img {
      height: 330px;
      width: auto;
      filter: drop-shadow(0 0 36px rgba(139, 92, 246, 0.55));
      animation: float 5s ease-in-out infinite;
      display: block;
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-14px);
      }
    }

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

      .hero-inner {
        padding: 40px 24px;
        min-height: 280px;
      }

      .hero-title {
        font-size: 2rem;
      }

      .site-logo-img {
        height: 56px;
      }
    }

    /* ── Toolbar ── */
    .toolbar {
      display: flex;
      gap: 12px;
      margin-bottom: 32px;
      flex-wrap: wrap;
      align-items: center;
    }

    .search-box {
      flex: 1;
      min-width: 240px;
      position: relative;
    }

    .search-box input {
      width: 100%;
      padding: 12px 16px 12px 44px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.05);
      color: #e2e8f0;
      font-size: 0.95rem;
      outline: none;
      transition: all 0.2s;
      backdrop-filter: blur(8px);
    }

    .search-box input:focus {
      border-color: #66c0f4;
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.15);
    }

    .search-box input::placeholder {
      color: #475569;
    }

    .search-box .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #64748b;
      font-size: 1.1rem;
    }

    .filter-btn {
      padding: 12px 20px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.05);
      color: #94a3b8;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      backdrop-filter: blur(8px);
      font-family: inherit;
    }

    .filter-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #e2e8f0;
    }

    .filter-btn.active {
      background: rgba(102, 192, 244, 0.15);
      border-color: rgba(102, 192, 244, 0.3);
      color: #66c0f4;
    }

    /* ── Card Grid ── */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 20px;
      padding-bottom: 64px;
    }

    @media (max-width: 400px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ── Card ── */
    .card {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(12px);
      position: relative;
    }

    .card:hover {
      transform: translateY(-4px);
      border-color: rgba(102, 192, 244, 0.25);
      box-shadow: 0 8px 32px rgba(102, 192, 244, 0.12);
    }

    .card-cover-wrap {
      position: relative;
      overflow: hidden;
    }

    .card-cover {
      width: 100%;
      height: 180px;
      object-fit: cover;
      background: linear-gradient(135deg, #1e293b, #0f172a);
      display: block;
    }

    .card-cover-placeholder {
      width: 100%;
      height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      font-size: 4rem;
    }

    .card-rank-badge {
      position: absolute;
      bottom: 10px;
      right: 10px;
      width: 96px;
      height: auto;
      border-radius: 6px;
      filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
      pointer-events: none;
      z-index: 2;
    }

    .card-body {
      padding: 20px;
    }

    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: #f1f5f9;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .card-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .card-score {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 700;
      font-size: 0.95rem;
      padding: 4px 10px;
      border-radius: 8px;
    }

    .score-high {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
    }

    .score-mid {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
    }

    .score-low {
      background: rgba(251, 191, 36, 0.15);
      color: #facc15;
    }

    .score-bad {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
    }

    .card-status {
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .status-ea {
      background: rgba(251, 191, 36, 0.15);
      color: #facc15;
    }

    .status-released {
      background: rgba(34, 197, 94, 0.12);
      color: #4ade80;
    }

    .card-genres {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .card-genre-tag {
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 0.78rem;
      background: rgba(255, 255, 255, 0.06);
      color: #94a3b8;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .card-price {
      font-size: 1.15rem;
      font-weight: 700;
      color: #66c0f4;
    }

    .card-date {
      font-size: 0.8rem;
      color: #64748b;
    }

    /* ── Empty State ── */
    .empty-state {
      text-align: center;
      padding: 80px 24px;
      grid-column: 1 / -1;
    }

    .empty-state .icon {
      font-size: 5rem;
      margin-bottom: 20px;
      opacity: 0.6;
    }

    .empty-state h2 {
      font-size: 1.5rem;
      color: #94a3b8;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .empty-state p {
      color: #64748b;
      font-size: 1rem;
      max-width: 500px;
      margin: 0 auto;
      line-height: 1.7;
    }

    .empty-state code {
      background: rgba(102, 192, 244, 0.12);
      color: #66c0f4;
      padding: 3px 10px;
      border-radius: 6px;
      font-size: 0.9rem;
      font-family: "JetBrains Mono", "Fira Code", monospace;
    }

    /* ── Footer ── */
    .footer {
      text-align: center;
      padding: 32px;
      color: #94a3b8;
      font-size: 0.85rem;
    }

    .footer a {
      color: #66c0f4;
      text-decoration: none;
    }

    .footer a:hover {
      color: #93d0f7;
      text-decoration: underline;
    }

    /* ── Loading shimmer ── */
    @keyframes shimmer {
      0% {
        background-position: -200px 0;
      }

      100% {
        background-position: calc(200px + 100%) 0;
      }
    }

    .card-skeleton {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 16px;
      overflow: hidden;
      height: 380px;
    }

    .card-skeleton .cover {
      height: 180px;
      background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
      background-size: 200px 100%;
      animation: shimmer 1.5s infinite;
    }

    .card-skeleton .body {
      padding: 20px;
    }

    .card-skeleton .line {
      height: 16px;
      border-radius: 8px;
      margin-bottom: 12px;
      background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
      background-size: 200px 100%;
      animation: shimmer 1.5s infinite;
    }

    .card-skeleton .line.short {
      width: 60%;
    }

    .card-skeleton .line.medium {
      width: 80%;
    }

    /* ── Animations ── */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

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

    .card {
      animation: fadeIn 0.4s ease-out;
    }
