body { max-width: 1200px; margin: 0 auto; font-family: system-ui, sans-serif; padding: 10px; margin-bottom: 130px; background: #f5f5f5; } .item { border: 2px solid transparent; background: white; padding: 14px; border-radius: 10px; margin-bottom: 10px; font-size: 1.1em; display: flex; justify-content: space-between; align-items: center; } .item.active { border-color: #1e90ff; } .item.isPin { background: #fff7d6; } .mountains-right { position: fixed; /* cố định dưới màn hình */ bottom: 0; right: 0; width: 120px; /* to hơn chút cho rõ */ height: 80px; background: url('/module/thonhac/asset/png_nui.jpg') no-repeat right bottom; background-size: contain; opacity: 0.9; /* hơi mờ */ z-index: -1; /* nằm dưới item */ pointer-events: none; /* để click không bị cản */ } .title { flex: 1; font-weight: bold; word-break: break-word; } .options-btn { cursor: pointer; background: none; border: none; font-size: 1.3em; } /* Dropdown */ #dropdown { position: absolute; background: #ffffff; border-radius: 12px; border: 1px solid #ccc; display: none; flex-direction: column; box-shadow: 0 8px 20px rgba(0,0,0,0.25); min-width: 250px; max-width: 90vw; /* không vượt quá 90% màn hình */ z-index: 999; overflow: hidden; transition: all 0.2s ease; } #dropdown button { padding: 14px 20px; border: none; background: #ffffff; cursor: pointer; text-align: left; font-size: 1.2em; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee; transition: all 0.15s ease; border-radius: 0; /* để các nút sát nhau, chỉ bo tròn ngoài cùng dropdown */ } #dropdown button:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; } #dropdown button:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; border-bottom: none; } #dropdown button:hover { background: #f0f8ff; transform: scale(1.03); font-weight: bold; } #player-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px 20px 20px; background: #222; color: white; z-index: 100; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.3); } #player-title { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } audio { width: 100%; } #search { width: 100%; padding: 10px 36px 10px 10px; font-size: 1em; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; } #clear-search { position: absolute; right: 2px; top: 0; bottom: 0; margin: auto; height: 100%; aspect-ratio: 1; font-size: 1em; background: none; border: none; cursor: pointer; color: #888; display: none; align-items: center; justify-content: center; } .category-btn { padding: 6px 12px; margin-right: 6px; border: 1px solid #ccc; background: white; border-radius: 6px; cursor: pointer; } .category-btn.active { background: #1e90ff; color: white; border-color: #1e90ff; } .badge-new { display: inline-block; margin-left: 8px; padding: 2px 6px; font-size: 0.75em; font-weight: bold; color: white; background: red; border-radius: 6px; animation: blink 1s infinite; } @keyframes blink { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0; } } 
    #search-bar {
    position: sticky;  /* hoặc fixed nếu muốn luôn bám màn hình */
    top: 50px;
    background: #f5f5f5;  /* màu nền trùng với body để che item bên dưới */
    z-index: 50;          /* cao hơn danh sách */
    padding: 6px 0;
}



/* --- Danh sách nhạc tổng --- */
#list {}

/* --- Mỗi bài hát --- */
.item {
padding-top: 5px;
padding-bottom: 5px;
}


/* --- Tiêu đề bài hát --- */
.item .title {}

/* --- Các nhãn nhỏ --- */
.badge-new {}

.badge-star {}

.listen-count {
  font-size: 0.75em;
  color: #555;
  margin-left: 6px;
}

/* --- Catalog --- */
.categories {
  margin-top: 4px;
}

.cat-label {
  display: inline-block;
  background: #eee;
  color: #333;
  font-size: 0.75em;
  padding: 1px 5px;
  border-radius: 3px;
  margin: 2px 3px 0 0;
}

/* --- Nút ⋮ --- */
.options-btn {}


/* --- Bài đang phát --- */
.item.playing {
  border: 1px solid #1e88e5;
}

/* --- Giao diện trên điện thoại --- */
@media (max-width: 600px) {
  #list {  }

  .item {  }

  .item .title {  }
}






#btnTop {
  position: fixed;
  bottom: 100px;
  right: 10px;
  z-index: 99;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: white;
  border: none;
  outline: none;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}





.cat-hsd {
  border: 1px solid #ff69b4;   /* viền hồng */
  background: #f0f8ff;         /* nền xanh nhạt */
  color: #1e90ff;              /* chữ xanh đậm */
  font-style: italic;          /* chữ nghiêng */
  font-weight: bold;           /* chữ đậm */
  font-family: "Segoe UI", Tahoma, sans-serif;
}


    .song-red { background: #ffccd2; }
    .song-aqua { background: #b2ebf2;} /* xanh ngọc nhạt */
    .song-rainbow {
  background: linear-gradient(
    90deg, 
    red, orange, yellow, green, cyan, blue, violet, red
  );
  background-size: 400% 400%;
  animation: rainbowMove 8s linear infinite;
  color: #fff;         /* chữ vẫn hiển thị bình thường */
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
}

@keyframes rainbowMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



.btn-neon {
  background: #111;
  color: #0ff;
  padding: 10px 16px;
  border: 2px solid #0ff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 5px #0ff, 0 0 20px #0ff;
  transition: 0.3s;
}

.btn-neon:hover {
  box-shadow: 0 0 10px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
}



/* --- Nút lung linh nhiều sao --- */
.btn-sparkle {
  background: #673ab7;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  font-weight: bold;
}

.btn-sparkle::before,
.btn-sparkle::after {
  content: "✨";
  position: absolute;
  top: 0px;
  font-size: 16px;
  animation: sparkleFly 3s linear infinite;
  opacity: 0.8;
}

.btn-sparkle::after {
  content: "🌟";
  top: auto;
  bottom: 0px;
  animation-delay: 1.5s;
}
.btn-sparkle::after {
  content: "💫";
  top: auto;
  bottom: 0px;
  animation-delay: 1.5s;
}

@keyframes sparkleFly {
  0%   { left: -20px; opacity: 0; }
  20%  { opacity: 1; }
  50%  { left: 50%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}



.btn-lightning {
  position: relative;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #fff;
  cursor: pointer;
}

.btn-lightning::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: lightning 2s infinite;
}

@keyframes lightning {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}





.btn-gradient {
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80);
  background-size: 600% 600%;
  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}





.btn-hologram {
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 12px;
  background: linear-gradient(90deg, #0ff, #f0f, #0ff);
  background-size: 300% 300%;
  animation: hologram 6s linear infinite;
  cursor: pointer;
}

@keyframes hologram {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* btn-diag-stripe - màu tươi sáng */
.btn-diag-stripe { 
  background: repeating-linear-gradient(
    -45deg,
    #ff9a9e 0 10px,   /* hồng nhạt */
    #fad0c4 10px 20px, /* cam nhạt */
    #fbc2eb 20px 30px, /* tím nhạt */
    #a1c4fd 30px 40px  /* xanh nhạt */
  );
  color: #111;              /* chữ đen cho nổi bật */
  font-weight: bold;        /* chữ đậm */
  animation: stripeMove 3s linear infinite;
}

@keyframes stripeMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 0; }
}











/* confetti liên tục */
.btn-confetti {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,#fef9c3,#fde68a);
  color: #111;
  font-weight: bold;
}

/* lớp 1 */
.btn-confetti::before,
.btn-confetti::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -30px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ff0;
  animation: confettiFall 3s linear infinite;
}

/* nhiều hạt - lớp 1 */
.btn-confetti::before {
  box-shadow:
    -40px -10px #f00,
    -25px -5px #0ff,
    -15px 10px #8b5cf6,
    0px -15px #60a5fa,
    20px -8px #34d399,
    30px -12px #f59e0b,
    45px -18px #ef4444,
    60px -10px #3b82f6,
    75px -15px #e879f9,
    -50px -12px #22d3ee,
    -65px -8px #84cc16,
    -80px -16px #a855f7,
    90px -20px #fb923c,
    110px -15px #06b6d4,
    -100px -18px #f87171,
    130px -22px #4ade80;
  animation-duration: 3.2s;
}

/* nhiều hạt - lớp 2 (delay khác) */
.btn-confetti::after {
  box-shadow:
    -45px -18px #3b82f6,
    -20px -8px #f472b6,
    15px -12px #a3e635,
    35px -20px #f59e0b,
    55px -25px #10b981,
    70px -10px #6366f1,
    95px -15px #f43f5e,
    115px -18px #22d3ee,
    135px -12px #fb923c,
    150px -16px #c084fc,
    -60px -20px #facc15,
    -90px -15px #2dd4bf,
    -120px -22px #ef4444;
  animation-duration: 3.6s;
  animation-delay: 1.2s;
}

@keyframes confettiFall {
  0%   { transform: translateY(-30px); opacity: 1; }
  100% { transform: translateY(120px); opacity: 0; }
}




/* water-drop */
.btn-waterdrop {
  position: relative;
  background: linear-gradient(90deg, #05668d, #0284c7);
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  overflow: hidden;
}

.btn-waterdrop::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow:
    18px 6px rgba(255,255,255,0.4),
    36px -4px rgba(255,255,255,0.3),
    54px 4px rgba(255,255,255,0.25),
    72px -6px rgba(255,255,255,0.35);
  animation: dropFloat 3s ease-in-out infinite alternate;
}

@keyframes dropFloat {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-14px) scale(0.85); }
  100% { transform: translateY(0) scale(1); }
}



/* btn-heartbeat */
.btn-heartbeat { animation:heartBeat 1.6s ease-in-out infinite; background:linear-gradient(90deg,#db2777,#ef4444); 

    color: #fff;
}

@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.15)}28%{transform:scale(1)}42%{transform:scale(1.08)}70%{transform:scale(1)}100%{transform:scale(1)}}

