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

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  overflow-x: hidden;
  background: #000;
  color: #fff;
}
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: left center;
  z-index: -2;
  filter: brightness(0.4) blur(2px);
}

.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s;
}

.menu-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.menu {
  position: fixed;
  top: 20px;
  left: 80px;
  display: flex;
  gap: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 12px;
  z-index: 9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
  color: #6d6d6d;
  transform: scale(1.1);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.avatar-row-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.avatar#main-avatar {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 28px 0 rgba(255,255,255,0.45), 0 0 0 6px rgba(255,255,255,0.18);
  border: 3px solid #fff;
  transition: border-color 0.5s, box-shadow 0.7s cubic-bezier(.4,0,.2,1);
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: avatar-glow 2.2s infinite alternate;
}

@keyframes avatar-glow {
  0% {
    box-shadow: 0 0 18px 0 rgba(255,255,255,0.25), 0 0 0 3px rgba(255,255,255,0.10);
    border-color: #fff;
  }
  100% {
    box-shadow: 0 0 38px 0 rgba(255,255,255,0.7), 0 0 0 10px rgba(255,255,255,0.22);
    border-color: #fff;
  }
}

.avatar-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-bottom: 0;
  flex-direction: row;
}

.avatar {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255,255,255,0.3);
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.07);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

h1, .wavy-title {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 0 16px rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
  margin-top: 0rem;
  margin-bottom: 0rem; /* sát tối đa với avatar */
}

h1:hover {
  transform: scale(1.05);
}

.desc {
  font-size: 1.2rem;
  margin: 8px 0;
  color: #ccc;
  transition: transform 0.3s ease;
}

.desc:hover {
  transform: scale(1.03);
}

.location {
  font-size: 1.05rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
  margin-bottom: 28px;
  transition: transform 0.3s ease;
}

.location:hover {
  transform: scale(1.03);
}

.loc-icon {
  width: 18px;
  height: 18px;
  filter: brightness(1.2) drop-shadow(0 0 3px #fff);
  pointer-events: none;
}

/* Music player */
.custom-player {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 6px 10px; /* giảm padding */
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px; /* giảm khoảng cách giữa các nút */
  justify-content: center;
  box-shadow: 0 0 16px rgba(255,255,255,0.18);
  margin-bottom: 18px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#btn {
  outline: none;
  border: none;
  border-radius: 50%;
  padding: 6px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s, box-shadow 0.3s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

#btn-icon {
  width: 14px;
  height: 14px;
  pointer-events: none;
  user-select: none;
}

.track-title {
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 4px #000;
  font-size: 0.95rem;
}

/* Social icons */
.socials {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 60px;
}

.socials a {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px;
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials a img {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  padding: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.socials a:hover img {
  transform: scale(1.15);
  filter: brightness(1.2);
}

#falling-chars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

.char {
  position: absolute;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px #0ff;
  opacity: 0.8;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}
body {
  cursor: url('../icons/cur.png'), auto;
}

a:hover, button:hover {
  cursor: url('../icons/cur.png'), pointer;
}
#overlay-blur {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), visibility 0.7s;
  opacity: 1;
  visibility: visible;
  cursor: pointer;
}
#overlay-blur.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.overlay-text {
  color: #fff;
  font-size: 2.1rem;
  font-weight: bold;
  text-shadow: 0 4px 32px #000, 0 0 16px #fff;
  user-select: none;
  pointer-events: none;
  letter-spacing: 1px;
  animation: overlayTextFadeIn 1.2s;
}
@keyframes overlayTextFadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}
body.blur-active > *:not(#overlay-blur) {
  filter: blur(18px) brightness(0.5);
  pointer-events: none;
  user-select: none;
}
#overlay-blur .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-effect 0.7s linear;
  z-index: 1;
}
@keyframes ripple-effect {
  to {
    transform: scale(8);
    opacity: 0;
  }
}
.wavy-title {
  display: inline-block;
  animation: shake 14s infinite ease-in-out;
  transform-origin: 50% 60%;
}

@keyframes shake {
  0%   { transform: rotate(-5deg);}
  20%  { transform: rotate(5deg);}
  40%  { transform: rotate(-4deg);}
  60%  { transform: rotate(4deg);}
  80%  { transform: rotate(-3deg);}
  100% { transform: rotate(-5deg);}
}
#lyrics-box {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100vw;
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
  z-index: 9999;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  min-height: 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  filter: drop-shadow(0 2px 8px #000);
}

#lyrics-box.show {
  opacity: 1;
  transform: scale(1.08); 
}

.lyric-inner {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.82);
  z-index: 1;
  padding: 0 12px;
  overflow: hidden;
  transition: color 0.5s;
  font-weight: 600;
  backdrop-filter: blur(1.5px);
}

.lyric-mask {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #000;
  z-index: 2;
  pointer-events: none;
  transition: width linear;
  mix-blend-mode: difference;
  border-radius: 4px;
}

.discord-widget {
  text-align: center;
  margin-top: 18px;
  background: #222;
  border: 2px solid red;
}
.discord-widget .avatar-wrapper {
  display: inline-block;
  border: 4px solid #5865F2;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 6px;
}
.discord-widget .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.discord-widget .status {
  font-size: 1.05em;
  margin-top: 6px;
}

.discord-activity {
  font-size: 14px;
  margin-top: 5px;
  color: #ccc;
}

.status-row-right {
  width: 95%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: -40px;
}

.discord-status-box-center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  font-size: 1.05rem;
  background: rgba(30,30,30,0.18);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 120px;
  box-shadow: 0 0 8px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  #bg-video {
    object-position: 15% center;
  }
  .socials {
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .socials a img {
    width: 36px;
    height: 36px;
    padding: 2px;
  }
  #lyrics-box {
    font-size: 0.92rem;
    min-height: 1.7em;
    padding: 0 6px;
    bottom: 8px;
  }
  .lyric-inner {
    padding: 0 4px;
    font-size: 1em;
  }
  .avatar#main-avatar {
    width: 140px;
    height: 140px;
    margin: 0 !important;
  }
  .avatar-status-row {
    gap: 8px;
  }
  .discord-status-box {
    font-size: 0.92rem;
    padding: 4px 8px;
    min-width: 70px;
  }
  .avatar-row-center {
    margin-bottom: 4px;
  }
  .avatar#main-avatar {
    width: 56px;
    height: 56px;
  }
  .discord-status-box-center {
    font-size: 0.92rem;
    padding: 4px 8px;
    min-width: 70px;
  }
  .status-row-right {
    margin-bottom: 4px;
  }
}
@keyframes avatar-glow-mobile {
  0% {
    box-shadow: 0 0 8px 0 rgba(255,255,255,0.18), 0 0 0 1.5px rgba(255,255,255,0.08);
    border-color: #fff;
  }
  100% {
    box-shadow: 0 0 18px 0 rgba(255,255,255,0.45), 0 0 0 4px rgba(255,255,255,0.18);
    border-color: #fff;
  }
}