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

/* Thanh cuộn */
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }

/* Mặc định ẩn menu mobile */
.mobile-bottom-nav { display: none; }

/* Responsive cho màn hình <= 992px */
@media (max-width: 992px) {
  .sidebar { display: none !important; }
  .main-content > div:first-child button,
  .main-content > div:first-child span { display: none !important; }
  .main-content > div:first-child div[style*="max-width: 260px"] { display: none !important; }

  #tidalSpotlightBanner { padding: 12px 12px 0 !important; }
  #tidalSpotlightBanner img { height: 200px !important; object-fit: cover !important; }
  #tidalSpotlightBanner a { bottom: 20px !important; left: 20px !important; padding: 8px 20px !important; font-size: 12px !important; }

  .album-card-item, .playlist-card-item, .artist-card-item {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: none !important;
  }
  .slider-container, #artistsGrid { gap: 12px !important; }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 12px; left: 12px; right: 12px;
    height: 60px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    justify-content: space-around;
    align-items: center;
    z-index: 999999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  .main-content { padding-bottom: 90px !important; }

  .nav-pc { display: none !important; }
  .logo-mobile { display: flex !important; align-items: center; }
}

@media (max-width: 768px) {
  .player-bar {
    display: flex !important;
    bottom: 58px !important; /* đẩy lên trên thanh mobile nav */
    z-index: 1000000 !important; /* cao hơn mọi thành phần khác */
  }
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 58px;
    background: #111;
    border-top: 1px solid #222;
    justify-content: space-around;
    align-items: center;
    z-index: 999999;
  }

  .mobile-nav-item {
    width: 48px; height: 48px;
    display: flex; justify-content: center; align-items: center;
    color: #888; font-size: 22px; cursor: pointer;
  }
  .mobile-nav-item.active { color: #fff; }
}

/* Header */
.header-left { display: flex; align-items: center; }
.nav-pc { display: flex; gap: 14px; }
.logo-mobile { display: none; }
.logo-mobile img { width: 28px; height: 28px; object-fit: contain; }


@media (max-width: 768px) {
  /* Chặn ẩn mặc định của bạn */
  #headerSearch {
    display: none !important;
  }

  /* Khi bấm nút kính lúp, ép hiển thị cố định lên trên đầu */
  #headerSearch.show-search {
    display: flex !important; /* Hoặc block tùy cấu trúc */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Độ cao thanh tìm kiếm */
    background: #111; /* Đổi màu nền trùng với app của bạn */
    z-index: 9999; /* Đảm bảo nổi lên trên cùng */
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
}
