* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  position: sticky;
  top: 0;
  background-color: white;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  gap: 12px;
}

.container {
  display: flex;
  max-width: 800px;
  width: 100%;
  position: relative;
}

.main-container {
  flex-direction: column;
}

.list-container {
  padding: 8px 0;
}

.search-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box {
  position: relative;
  display: inline-block;
  max-width: 300px;
  width: 100%;
}

#search-input {
  padding-right: 30px;
  /* Dodaj miejsce na "x" */
  width: 100%;
  box-sizing: border-box;
}

#clear-small-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: none;
  /* Domyślnie ukryty */
  width: 20px;
}


input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 16px;
}

button {
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover {
  background-color: #ff5047;
}

.song-item {
  background-color: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.song-item:hover {
  background-color: #e0e0e5;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  text-decoration: none;
}

.song-title {
  font-size: 18px;
}

.page-number {
  font-weight: bold;
  color: #666;
}

.song-title {
  display: flex;
  gap: 4px;
  align-items: center;
}

.song-title img {
  width: 18px;
}

@media (max-width: 600px) {
  .song-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-number {
    margin-top: 5px;
  }

  #clear-small-button.visible {
    display: inline;
    /* Pokazuj, gdy widoczny */
  }

  #clear-button {
    display: none;
  }
}
