body {
      font-family: Arial, sans-serif;
      background: #111;
      color: white;
      padding: 20px;
    }

    h1 {
      text-align: center;
      color: #ff4757;
    }

    .controls {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }

    input,
    select,
    button {
      padding: 10px;
      border: none;
      border-radius: 10px;
      font-size: 16px;
    }

    button {
      background: #ff4757;
      color: white;
      cursor: pointer;
    }

    .results {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
      max-width: 1200px; /* Centra y limita el contenedor global */
      margin: 0 auto;
    }

    .card {
      background: #1e1e1e;
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-width: 280px;
      width: 100%;
      margin: 0 auto; 
    }

    .card img {
      width: 100%;
      height: 350px;
      object-fit: cover;
    }

    .content {
      padding: 15px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    h3 {
      margin: 0 0 8px 0;
      font-size: 1rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: #ccc;
      margin-top: auto;
    }

    .card-genres {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 90px;
      background-color: rgba(255, 255, 255, 0.1);
      padding: 2px 6px;
      border-radius: 4px;
    }