body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 {
  text-align: center;
  color: #2c3e50;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

select, input {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 40px;
}

.links a {
  display: inline-block;
  background-color: #2ecc71;
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
}

.links a.master {
  background-color: #e74c3c;
}

/* Main Menu Styles */
.main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.main-title {
  font-size: 3em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  color: #7f8c8d;
  margin-bottom: 40px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.role-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 5px solid transparent;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.role-card h3 {
  margin-top: 0;
  font-size: 1.5em;
}

.master-role { border-bottom-color: #e74c3c; }
.actor-role { border-bottom-color: #2ecc71; }
.tv-role { border-bottom-color: #f1c40f; }

/* Master specific */
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.line-preview {
  font-size: 1.2em;
  padding: 15px;
  background: #f8f9fa;
  border-left: 5px solid #3498db;
  margin: 10px 0;
}

/* Actor specific */
.actor-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.line-display {
  font-size: 2.5em;
  font-weight: bold;
  color: #2c3e50;
  padding: 30px;
  margin: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-bottom: 5px solid #2ecc71;
  animation: popIn 0.3s ease-out;
}

.waiting-message {
  font-size: 1.5em;
  color: #7f8c8d;
  font-style: italic;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.instruction {
  font-size: 1.2em;
  color: #e67e22;
  font-style: italic;
  margin-bottom: -15px;
  z-index: 10;
  position: relative;
}

.setup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
}

.centered-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.centered-body .container {
  width: 100%;
}
