.cast-hint {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cast-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.cast-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.cast-card:not(.cast-more-card) img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.cast-card p {
  margin: 0.75rem 0;
  font-weight: bold;
  text-align: center;
}

.cast-more-card {
  cursor: default;
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.12), rgba(255, 255, 255, 0.03));
  border-style: dashed;
}

.cast-more-card:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.16), rgba(255, 255, 255, 0.05));
}

.cast-more-card-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
}

.cast-more-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 602;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.cast-more-label {
  margin: 0.9rem 0 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.is-active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  height: 90vh;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 2rem;
  z-index: 1001;
}
.modal-nav.prev { left: 1rem; }
.modal-nav.next { right: 1rem; }
.modal-nav:hover { background: rgba(0, 0, 0, 0.8); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--primary);
}

.modal-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text);
}

.modal-info {
  text-align: left;
  line-height: 1.8;
  color: var(--text-muted);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .modal-content {
    padding: 2rem 1rem 1.5rem;
  }
  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .modal-info-label {
    margin-top: 0.5rem;
  }
}

.modal-info-label {
  font-weight: bold;
  color: var(--primary);
}

.modal-info-value {
  color: var(--text);
  white-space: pre-wrap;
}

.modal-description {
  white-space: pre-wrap;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .modal-nav { display: none; }
}
