body {
  background-color: #fffdf5;
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 로고 */
.title-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.title-logo {
  width: 240px;
  transition: transform 0.3s;
}

.title-logo:hover {
  transform: scale(1.05);
}

/* 페이지 제목 */
#pageTitle {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
}

/* 검색 */
#searchInput {
  display: block;
  margin: 0 auto 20px;
  padding: 12px;
  width: 260px;
  border-radius: 999px;
  border: 1px solid #eee;
}

#searchInput:focus {
  width: 320px;
  outline: none;
}

/* 버튼 */
.controls, .tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

button {
  border: 1px solid #eee;
  background: white;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

button:hover,
button.active {
  background: #dcc5a6;
  color: white;
}

/* 테이블 */
table {
  width: 100%;
  border-spacing: 0 10px;
}

thead { display: none; }

tr {
  background: white;
  border-radius: 10px;
}

td {
  padding: 10px 12px;
}

td:first-child {
  font-weight: 600;
  padding-left: 20px;
}

td:nth-child(3) {
  white-space: nowrap;
}

/* 버튼 영역 */
td:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

td a {
  background: #dcc5a6;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

td button {
  border: none;
  background: none;
  font-size: 18px;
}

.fav {
  color: #bbb;
}

.fav.on {
  color: #5a94c3;
}

/* ========================= */
/* 모바일 */
/* ========================= */
@media (max-width:600px) {

  #searchInput {
    width: 200px;
  }

  tbody { display: block; }

  tr {
    display: block;
    margin-bottom: 15px;
    padding: 12px 16px;
  }

  td {
    display: block;
    padding: 4px 0;
  }

  td:first-child {
    padding-left: 8px;
    margin-bottom: 4px;
  }

  /* 라벨 */
  td:nth-child(2)::before { content: "가수 "; }
  td:nth-child(3)::before { content: "날짜 "; }
  td:nth-child(4)::before { content: "태그 "; }

  td:nth-child(2)::before,
  td:nth-child(3)::before,
  td:nth-child(4)::before {
    margin-right: 6px;
    color: #999;
    font-size: 12px;
  }

  /* 버튼 위로 끌어올림 */
  td:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: -22px;
  }

}