* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.info span {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.home-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.home-link:hover {
  opacity: 0.8;
}

.table-of-contents {
  background: #f8fafc;
  padding: 30px 40px;
  border-bottom: 2px solid #e2e8f0;
}

.table-of-contents h3 {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.toc-item {
  display: block;
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.toc-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.toc-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #667eea;
}

.toc-desc {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 5px;
}

.toc-range {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.artists-section {
  padding: 20px 40px 40px;
}

.artists-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.artists-table thead th {
  background: #1e293b;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.artists-table tbody tr {
  transition: background-color 0.2s;
}

.artists-table tbody tr:hover {
  background-color: #f1f5f9;
}

.artists-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.sequence {
  font-weight: 600;
  color: #667eea;
  font-size: 1rem;
  width: 50px;
  text-align: center;
}

.artist-name {
  width: 180px;
  min-width: 120px;
}

.artist-text {
  display: inline-block;
  padding: 3px 6px;
  background: #f1f5f9;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.7rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  word-break: break-all;
  line-height: 1.2;
}

.artist-text:hover {
  background: #e2e8f0;
  transform: scale(1.02);
}

.artist-text:active {
  transform: scale(0.98);
}

.image-cell {
  width: 320px;
  text-align: center;
}

.image-cell img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.image-cell img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.no-image {
  color: #94a3b8;
  font-style: italic;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #e2e8f0;
}

.category-header {
  background: #f8fafc !important;
}

.category-title {
  padding: 20px 15px !important;
  border-left: 4px solid #667eea;
}

.category-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.category-index {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
}

.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}

footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer a {
  color: #667eea;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  header {
    padding: 20px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .info {
    flex-direction: column;
    gap: 10px;
  }

  .table-of-contents {
    padding: 20px;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .artists-section {
    padding: 10px;
    overflow-x: auto;
  }

  .artists-table {
    min-width: 800px;
  }

  .image-cell {
    width: 120px;
  }

  .image-cell img {
    max-width: 100px;
    max-height: 100px;
  }
}