#ptb-wrapper {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

#ptb-controls {
  text-align: center;
  margin-bottom: 20px;
}

#ptb-controls button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

#ptb-random { background: #9c27b0; }
#ptb-copy   { background: #2196f3; }
#ptb-reset  { background: #f44336; }

#ptb-controls button:hover { opacity: 0.85; }

#ptb-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#ptb-left  { flex: 2; min-width: 280px; }
#ptb-right { flex: 1; min-width: 220px; }

#ptb-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  #ptb-team {
    grid-template-columns: repeat(2, 1fr);
  }
  #ptb-layout {
    flex-direction: column;
  }
}

.ptb-slot {
  background: #f9f9f9;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ptb-slot.active { border-color: #4caf50; }
.ptb-slot:hover  { border-color: #aaa; }

.ptb-slot img {
  width: 70px;
  height: 70px;
  display: block;
  margin: 0 auto;
}

.ptb-slot small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.ptb-slot select {
  width: 100%;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  font-size: 12px;
}

#ptb-details {
  background: #fafafa;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #eee;
}

#ptb-details h3 { margin-top: 0; }

#ptb-details img {
  display: block;
  margin: 5px 0;
}

.ptb-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 3px;
  font-size: 13px;
  background: #e0e0e0;
  color: #333;
  text-transform: capitalize;
}

.ptb-stat {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

#ptb-analysis {
  margin-top: 15px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
}

#ptb-analysis h3 { margin-top: 0; }

.ptb-warning {
  color: #e91e63;
  font-weight: bold;
  margin-top: 8px;
}

#ptb-loading {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: #888;
}
