* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  background-color: #ffffff;
  overflow-x: hidden;
}

html {
  overflow-y: overlay;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body {
  scrollbar-gutter: stable;
}
body {
  padding-bottom: env(safe-area-inset-bottom);
}
.content-offset {
  padding-top: 2.33vw;
  position: relative;
  padding-bottom: 20vh;
}
.top-container {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  height: 25vh;
  background-image: url('../img/ceshi.jpg');
  background-size: cover;
  background-position: center;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  cursor: pointer;
}

.bg-change-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4.0vw;
  color: white;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 20;
  pointer-events: none;
}
.rounded-corner-image {
  position: absolute;
  top: 24.5vh;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}
.top-ref-image {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  height: auto;
  z-index: 52;
}
.horizontal-image-container {
  position: absolute;
  top: 6.98vw;
  left: 0;
  right: 0;
  height: 27.91vw;
  padding: 0 2.33vw;
  z-index: 60;
}
.horizontal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.86vw;
}
.user-profile {
  position: absolute;
  bottom: 5%;
  left: 5%;
  display: flex;
  align-items: center;
  z-index: 60;
}
.user-info-container {
  position: absolute;
  left: calc(5% + 25vw + 5%);
  top: 70%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1vw;
  z-index: 60;
}
.user-info-name {
  color: #ffffff;
  font-size: 6.0vw;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.1vw;
}
.user-info-id-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5vw;
}
.user-info-id {
  color: rgba(255, 255, 255, 0.65);
  font-size: 3.2vw;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.05vw;
}
.user-info-qr {
  width: 3.2vw;
  height: 3.2vw;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4vw;
}
.qr-box {
  width: 1.5vw;
  height: 1.5vw;
  border: 0.35vw solid rgba(255, 255, 255, 0.65);
  border-radius: 0.35vw;
}
.qr-lines {
  display: flex;
  gap: 0.35vw;
  align-items: center;
  justify-content: center;
}
.qr-line {
  width: 0.25vw;
  height: 85%;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 0.2vw;
}
.avatar-container {
  position: relative;
  width: 25vw;
  height: 25vw;
  cursor: pointer;
}
.avatar-stats {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-25%); 
  margin-top: 5%;
  display: flex;
  gap: 6.8vw;
  width: max-content;
}
.edit-profile-btn {
  position: absolute;
  left: 110%;
  top: 90%;
  transform: translateY(-50%);
  width: 26vw;
  height: auto;
  cursor: pointer;
  z-index: 1000;
}
.stats-caption {
  position: absolute;
  top: 100%;
  left: calc(50% - 43%); 
  margin-top: 19.53vw;
  color: #000000;
  font-weight: normal;
  white-space: nowrap;
  font-size: 3.8vw;
  text-align: left;
  width: max-content;
}
.tag-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 23vw;
  width: 100%;
  height: 8vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tag-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  margin-left: 0;
}
.full-width-container {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  margin-top: 15.5vh;
}
.full-width-container img {
  width: 100%;
  height: auto;
  display: block;
}
.works-container {
  position: relative;
  left: 0;
  transform: none;
  margin-top: 2vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.23vw;
  width: 100%;
  overflow-x: hidden;
}
.work-item {
  width: calc((100% - 0.46vw) / 3);
  height: 45.12vw;
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  background-color: #f1f1f1;
  cursor: pointer;
}
.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-count {
  position: absolute;
  bottom: 1.86vw;
  left: 2.79vw;
  display: flex;
  align-items: center;
  gap: 0.7vw;
  color: #ffffff;
  font-size: 2.91vw;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.play-icon {
  width: 2.56vw;
  height: 2.56vw;
  background-image: url('../img/bfl.png');
  background-size: cover;
  background-position: center;
}
.play-number {
  font-weight: 400;
}
.play-number.bold {
  font-weight: 500;
}
.no-more-text {
  width: 100%;
  text-align: center;
  margin-top: 2vw;
  color: #cccccc;
  font-size: 2.79vw;
  font-weight: 400;
  -webkit-text-stroke: 0.12vw #999999;
  text-stroke: 0.12vw #999999;
  white-space: nowrap;
}
.stat-item {
  color: #000000;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item > div {
  margin-bottom: 0.2vw;
}
.stat-number {
  font-size: 3.58w;
  font-weight: 800;
  line-height: 1;
}
.stat-unit {
  font-size: 3.8vw;
  font-weight: 800;
  line-height: 1;
}
.stat-label {
  font-size: 3.8vw; 
  color: #999999; 
  font-weight: 400; 
  white-space: nowrap;
  margin-top: 0;
}
.stat-1 {
  transform: translate(2.79vw, 3.95vw) scale(1.05);
}
.stat-2 {
  transform: translate(1.86vw, 3.95vw) scale(1.05);
}
.stat-3 {
  transform: translate(2.79vw, 3.95vw) scale(1.05);
}
.stat-4 {
  transform: translate(1.16vw, 3.95vw) scale(1.05);
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 0.6vw solid #FFFAF0;
}
.avatar-plus-container {
  position: absolute;
  right: -0.47vw;
  bottom: 0.7vw;
  width: 6.98vw;
  height: 6.98vw;
  background-image: url('../img/lv.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 0.7vw solid #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-plus {
  color: white;
  font-size: 5.12vw;
  font-weight: 500;
  transform: translateY(-0.23vw);
}
.musician-wrapper {
  display: flex;
  align-items: center;
  gap: 0.93vw;
  position: relative;
  left: 0;
  z-index: 60;
}
.musician-icon {
  width: 3.49vw;
  height: 3.49vw;
  display: inline-block;
  background-size: cover;
  background-position: center;
  vertical-align: middle;
}
.musician-icon.yellow {
  background-image: url('../img/yyr.png');
}
.musician-icon.blue {
  background-image: url('../img/yylv.png');
}
.musician-icon.red {
  background-image: url('../img/yyhv.png');
}
.auth-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}
.auth-option.selected {
  border-color: #ff2d55;
  background-color: #fff5f5;
}
.auth-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  z-index: 60;
}
.musician-text {
  color: #ffffff;
  font-size: 2.79vw;
  font-weight: 400;
  line-height: 1.2;
}
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-mask.show {
  display: flex;
}
.modal-container {
  width: 85%;
  max-width: 400px;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}
.form-group {
  margin-bottom: 15px;
}
.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.file-upload {
  display: block;
  padding: 10px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  color: #666;
  margin-bottom: 10px;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.modal-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.btn-cancel {
  background: #eee;
  color: #666;
}
.btn-save {
  background: #ff2d55;
  color: white;
}
.hidden {
  display: none;
}
.stats-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.stats-group .form-group {
  flex: 1;
  min-width: 120px;
  margin-bottom: 0;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  height: auto;
}
.nav-img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 375px) {
  .play-count {
    font-size: 2.5vw;
  }
  .user-name {
    font-size: 4vw;
  }
}
@media screen and (min-width: 768px) {
  .play-count {
    font-size: 2vw;
  }
  .user-name {
    font-size: 3.5vw;
  }
}