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

html, body {
  width: 100%;
  min-height: 100%;
  background: #fff;
  font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
}

#field {
  padding: 20px 30px 40px 30px;
  line-height: 2.8;
  word-spacing: 12px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.artist {
  display: inline-block;
  color: #000;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  margin: 0 6px;
  vertical-align: top;
  font-weight: 400;
  text-align: center;
  contain: layout style;
}

.artist::after {
  display: block;
  content: attr(data-name);
  font-weight: 800;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.artist.visible {
  animation: bob var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--del);
}

.artist:hover {
  font-weight: 800;
}

@keyframes bob {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--dx), var(--dy)); }
}

#search-menu {
  position: fixed;
  z-index: 1001;
  background: #f0f0f0;
  border: 1px solid #000;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  min-width: 180px;
}

#search-menu.hidden {
  display: none;
}

#search-title {
  font-weight: bold;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
  color: #000;
}

.search-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-options a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.search-options a:hover {
  font-weight: bold;
}

#main-header {
  height: 80px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
  cursor: default;
}

.header-left {
  flex: 1;
  cursor: default;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.search-label {
  font-size: 12px;
  color: #000;
}

#search-input {
  border: 1px solid #000;
  padding: 6px 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: #000;
  width: 280px;
  text-align: center;
}

.header-right {
  flex: 1;
  text-align: right;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #000;
}

.artist.hidden {
  display: none !important;
}

#credit-link, #api-link {
  color: #000;
  text-decoration: none;
  font-size: 10px;
  cursor: pointer;
}

#credit-link:hover, #api-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.footer-image-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.footer-image-container img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

@media (max-width: 768px) {
  #main-header {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 12px;
  }

  .header-left, .header-right {
    flex: none;
    text-align: center;
    width: 100%;
    cursor: default;
  }

  .header-center {
    width: 100%;
    max-width: 320px;
  }

  #search-input {
    width: 100%;
    max-width: 100%;
  }

  .search-label {
    text-align: center;
    line-height: 1.4;
  }
}
