#cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.actor-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.actor-card {
  border: 1px solid #000;
  padding: 25px;
  border-radius: 15px;
}

/* Container for scroll if needed */
.table-container {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-top: 20px;
  margin: 0 auto;
}

th, td {
  border: 1px solid #444;
  padding: 10px;
  min-height: 40px;
  text-align: center;
}
td.partial {
  background: #3b82f6;
  /* color: #000; */
  font-weight: bold;
}

th { background: #f9f9f9; }
.correct { background: #1f8f4a; font-weight: bold; }
.wrong { background: #8f1f1f; font-weight: bold; }

/* DESKTOP LOGIC (Default) */
.mobile-only { display: none; }
.desktop-only { display: table-header-group; }

/* INPUT WRAPPER */
.input-wrapper {
  display: flex;
  margin: 0 auto;
  gap: 10px;
  max-width: 500px;
  position: relative;
}



@media (max-width: 768px) {
  /* Hide IMDb column on mobile */
  .imdb_col {
    display: none;
  }
  th, td {
    padding: 3px;
  }
  /* Also hide the header cell */
  th.imdb_col {
    display: none;
  }
}
@media (max-width: 600px) {
  .desktop-only { display: none; }
  .mobile-only { display: table-header-group; }

  /* Force the body to allow multiple rows for mobile */
  #answersBody.desktop-layout {
    display: table-row-group;
  }
}
